include/alp/launcher_dml.h File Reference


Detailed Description

Public header for the Launcher Data Model.

#include <errno.h>
#include <alp/types.h>
#include <hiker/bundlemgr.h>

Go to the source code of this file.

Defines

#define ALP_LAUNCHER_DML_SETTINGS_DEFAULT_CATEGORY   "default_category"
 Settings subpath to the Launcher DML default category setting.
#define ALP_LAUNCHER_DML_SETTINGS_ROOT   "/datamodels/libalp_launcher_dml/"
 Settings path to the root of the Launcher DML settings.
#define ALP_STATUS_LAUNCHER_DML_DATABASE_ERROR   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00030000)
 Generic database error.
#define ALP_STATUS_LAUNCHER_DML_EXISTS   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | EEXIST)
 The DML already has an entry for the specified bundle.
#define ALP_STATUS_LAUNCHER_DML_ICON_HELPER_ERROR   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00070000)
 Failed loading the launcher DML icon helper.
#define ALP_STATUS_LAUNCHER_DML_INTERNAL_ERROR   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00050000)
 The DML has encountered an internal logic error.
#define ALP_STATUS_LAUNCHER_DML_INVALID_COLUMN   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00040000)
 The specified column does not match the type of the alp_launcher_dml_get_*() function called.
#define ALP_STATUS_LAUNCHER_DML_INVALID_LUID   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00010000)
 A LUID parameter is invalid. Currently only for internal use.
#define ALP_STATUS_LAUNCHER_DML_INVALID_PARAMETER   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | EINVAL)
 A function parameter is invalid, e.g. NULL when it shouldn't be.
#define ALP_STATUS_LAUNCHER_DML_NO_RECORD   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00020000)
 A record could not be located.
#define ALP_STATUS_LAUNCHER_DML_NOMEM   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | ENOMEM)
 An operation could not allocate memory.
#define ALP_STATUS_LAUNCHER_DML_UNKNOWN   ((alp_status_t)ALP_CLASS_LAUNCHER_DML | 0x00060000)
 The DML has encountered an error that can't be classified.

Enumerations

enum  AlpLauncherCategoryType { launcherCategoryUnfiled = -1, launcherCategoryAll = 0 }
enum  AlpLauncherDmlColumnType {
  launcherFieldBundleName, launcherFieldName, launcherFieldHidden, launcherFieldPreventDelete,
  launcherFieldPreventCopy, launcherFieldUpdateAction, launcherFieldSettingsAction, launcherFieldDeleteAction,
  launcherFieldVendor, launcherFieldVersion, launcherFieldDescription, launcherFieldSize,
  launcherFieldRecords, launcherFieldOnCard, launcherFieldMimeType, launcherFieldStockIcon,
  launcherFieldIconData, launcherFieldShortcut, launcherFieldShortcutParams, launcherFieldEndFields
}
enum  AlpLauncherDmlOrderByType { launcherOrderAlpha }

Functions

alp_status_t alp_launcher_dml_close (AlpDmlH dmlH)
alp_status_t alp_launcher_dml_get_blob (AlpDmlStatementH stmtH, AlpLauncherDmlColumnType column, bool copy, void **out, int32_t *size)
AlpDmlH alp_launcher_dml_get_catmgr_handle (AlpDmlH dmlH)
alp_status_t alp_launcher_dml_get_luid (AlpDmlStatementH stmtH, AlpLuid *appLUID)
alp_status_t alp_launcher_dml_get_string (AlpDmlStatementH stmtH, AlpLauncherDmlColumnType column, bool copy, char **out)
alp_status_t alp_launcher_dml_get_uint32 (AlpDmlStatementH stmtH, AlpLauncherDmlColumnType column, uint32_t *out)
alp_status_t alp_launcher_dml_memberships_add (AlpDmlH dmlH, AlpLuid launcherLUID, const AlpLuid *categoryIDs, AlpLuid membershipLUID, int32_t numCategoryIDs)
alp_status_t alp_launcher_dml_memberships_get_list (AlpDmlH dmlH, AlpLuid launcherLUID, AlpLuid **categories, int32_t *numCategories)
alp_status_t alp_launcher_dml_memberships_remove (AlpDmlH dmlH, AlpLuid launcherLUID, const AlpLuid *categoryIDs, AlpLuid membershipLUID, int32_t numCategoryIDs)
alp_status_t alp_launcher_dml_open (AlpDmlH *dmlH, bool sync)
alp_status_t alp_launcher_dml_statement_begin (AlpDmlH dmlH, AlpLuid appLUID, AlpLuid categoryLUID, bool includeHidden, AlpLauncherDmlOrderByType orderby, const AlpLauncherDmlColumnType *columnTypes, int32_t numColumnTypes, AlpDmlStatementH *stmtH, int32_t *numResults)
alp_status_t alp_launcher_dml_statement_end (AlpDmlStatementH stmtH)
alp_status_t alp_launcher_dml_statement_next (AlpDmlStatementH stmtH)
alp_status_t alp_launcher_dml_sync (AlpDmlH dmlH, bool *appChanged, bool *catChanged)


Generated on Wed Jul 30 07:06:40 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.