dependencies/uncategorized/AiwCommon.hrh
author Kashif.sayed
Thu, 25 Mar 2010 23:48:15 +0530
branchv5backport
changeset 25 1161e0025932
permissions -rw-r--r--
.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
Kashif.sayed
parents:
diff changeset
     1
/*
Kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2003-2005 Nokia Corporation and/or its subsidiary(-ies).
Kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
Kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
Kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
Kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
Kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
Kashif.sayed
parents:
diff changeset
     8
*
Kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
Kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
Kashif.sayed
parents:
diff changeset
    11
*
Kashif.sayed
parents:
diff changeset
    12
* Contributors:
Kashif.sayed
parents:
diff changeset
    13
*
Kashif.sayed
parents:
diff changeset
    14
* Description:     Declares common constants to be used in both resources and
Kashif.sayed
parents:
diff changeset
    15
*                C++ code of consumers and providers.
Kashif.sayed
parents:
diff changeset
    16
*
Kashif.sayed
parents:
diff changeset
    17
*/
Kashif.sayed
parents:
diff changeset
    18
Kashif.sayed
parents:
diff changeset
    19
Kashif.sayed
parents:
diff changeset
    20
Kashif.sayed
parents:
diff changeset
    21
Kashif.sayed
parents:
diff changeset
    22
Kashif.sayed
parents:
diff changeset
    23
#ifndef AIW_COMMON_HRH
Kashif.sayed
parents:
diff changeset
    24
#define AIW_COMMON_HRH
Kashif.sayed
parents:
diff changeset
    25
Kashif.sayed
parents:
diff changeset
    26
// DATA TYPES
Kashif.sayed
parents:
diff changeset
    27
Kashif.sayed
parents:
diff changeset
    28
// CONSTANTS
Kashif.sayed
parents:
diff changeset
    29
Kashif.sayed
parents:
diff changeset
    30
/**
Kashif.sayed
parents:
diff changeset
    31
* Predefined service commands (UIDs).
Kashif.sayed
parents:
diff changeset
    32
*/
Kashif.sayed
parents:
diff changeset
    33
enum TAiwServiceCommands
Kashif.sayed
parents:
diff changeset
    34
    {
Kashif.sayed
parents:
diff changeset
    35
    /** Null value. */
Kashif.sayed
parents:
diff changeset
    36
    KAiwCmdNone = 0,
Kashif.sayed
parents:
diff changeset
    37
Kashif.sayed
parents:
diff changeset
    38
    /** Create new content. */
Kashif.sayed
parents:
diff changeset
    39
    KAiwCmdNew = 0x101F864C,
Kashif.sayed
parents:
diff changeset
    40
        
Kashif.sayed
parents:
diff changeset
    41
    /** Edit existing content. */
Kashif.sayed
parents:
diff changeset
    42
    KAiwCmdEdit = 0x101F864D,
Kashif.sayed
parents:
diff changeset
    43
        
Kashif.sayed
parents:
diff changeset
    44
    /** Select content. */
Kashif.sayed
parents:
diff changeset
    45
    KAiwCmdSelect = 0x101F864E,
Kashif.sayed
parents:
diff changeset
    46
    
Kashif.sayed
parents:
diff changeset
    47
    /** View content. */
Kashif.sayed
parents:
diff changeset
    48
    KAiwCmdView = 0x101F864F,
Kashif.sayed
parents:
diff changeset
    49
Kashif.sayed
parents:
diff changeset
    50
    /** Create call. */
Kashif.sayed
parents:
diff changeset
    51
    KAiwCmdCall = 0x101F86B0,
Kashif.sayed
parents:
diff changeset
    52
Kashif.sayed
parents:
diff changeset
    53
    /** Send content. */
Kashif.sayed
parents:
diff changeset
    54
    KAiwCmdSend = 0x101F86B3,
Kashif.sayed
parents:
diff changeset
    55
Kashif.sayed
parents:
diff changeset
    56
    /** Print content. */
Kashif.sayed
parents:
diff changeset
    57
    KAiwCmdPrint = 0x101F8666,
Kashif.sayed
parents:
diff changeset
    58
Kashif.sayed
parents:
diff changeset
    59
    /** Assign content. */
Kashif.sayed
parents:
diff changeset
    60
    KAiwCmdAssign = 0x101F8716,
Kashif.sayed
parents:
diff changeset
    61
Kashif.sayed
parents:
diff changeset
    62
    /** Share content. */
Kashif.sayed
parents:
diff changeset
    63
    KAiwCmdShare = 0x101F871E,
Kashif.sayed
parents:
diff changeset
    64
Kashif.sayed
parents:
diff changeset
    65
    /** Synchronize content. */
Kashif.sayed
parents:
diff changeset
    66
    KAiwCmdSynchronize = 0x101F8724,
Kashif.sayed
parents:
diff changeset
    67
Kashif.sayed
parents:
diff changeset
    68
    /** Synchronize selected. */
Kashif.sayed
parents:
diff changeset
    69
    KAiwCmdSynchronizeSelected = 0x1020720C,
Kashif.sayed
parents:
diff changeset
    70
Kashif.sayed
parents:
diff changeset
    71
    /** Search content. */
Kashif.sayed
parents:
diff changeset
    72
    KAiwCmdSearch = 0x101F87DF,
Kashif.sayed
parents:
diff changeset
    73
Kashif.sayed
parents:
diff changeset
    74
    /** Copy content. */
Kashif.sayed
parents:
diff changeset
    75
    KAiwCmdCopy = 0x101F87DE,
Kashif.sayed
parents:
diff changeset
    76
Kashif.sayed
parents:
diff changeset
    77
    /** Show print preview. */
Kashif.sayed
parents:
diff changeset
    78
    KAiwCmdPrintPreview = 0x101FD656,
Kashif.sayed
parents:
diff changeset
    79
    
Kashif.sayed
parents:
diff changeset
    80
    /** Push to talk. */
Kashif.sayed
parents:
diff changeset
    81
    KAiwCmdPoC = 0x101FD657,
Kashif.sayed
parents:
diff changeset
    82
    
Kashif.sayed
parents:
diff changeset
    83
    /** View content in online store. */
Kashif.sayed
parents:
diff changeset
    84
    KAiwCmdViewOnline = 0x102072EA,
Kashif.sayed
parents:
diff changeset
    85
    
Kashif.sayed
parents:
diff changeset
    86
    /** Upload content. */
Kashif.sayed
parents:
diff changeset
    87
    KAiwCmdUpload = 0x102072EB,
Kashif.sayed
parents:
diff changeset
    88
    
Kashif.sayed
parents:
diff changeset
    89
    /** Transfer a range of media files to a remote storage device. */
Kashif.sayed
parents:
diff changeset
    90
    KAiwCmdXpressTransfer = 0x10207430,
Kashif.sayed
parents:
diff changeset
    91
    
Kashif.sayed
parents:
diff changeset
    92
    /** UPnP copy content. */
Kashif.sayed
parents:
diff changeset
    93
    KAiwCmdUPnPCopy = 0x10207431,
Kashif.sayed
parents:
diff changeset
    94
           
Kashif.sayed
parents:
diff changeset
    95
    /** UPnP move content. */          
Kashif.sayed
parents:
diff changeset
    96
    KAiwCmdUPnPMove = 0x10207432,
Kashif.sayed
parents:
diff changeset
    97
Kashif.sayed
parents:
diff changeset
    98
    /** UPnP play content. */
Kashif.sayed
parents:
diff changeset
    99
    KAiwCmdUPnPPlay = 0x10207433,
Kashif.sayed
parents:
diff changeset
   100
Kashif.sayed
parents:
diff changeset
   101
    /** UPnP open content. */
Kashif.sayed
parents:
diff changeset
   102
    KAiwCmdUPnPOpen = 0x10207434,
Kashif.sayed
parents:
diff changeset
   103
    
Kashif.sayed
parents:
diff changeset
   104
    /** UPnP enable external. */
Kashif.sayed
parents:
diff changeset
   105
    KAiwCmdUPnPEnableExternal = 0x10207435,
Kashif.sayed
parents:
diff changeset
   106
    
Kashif.sayed
parents:
diff changeset
   107
    /** Show help content. */
Kashif.sayed
parents:
diff changeset
   108
    KAiwCmdHelp = 0x10275075,
Kashif.sayed
parents:
diff changeset
   109
    
Kashif.sayed
parents:
diff changeset
   110
    /** Add or remove items from intent. (Should be used as a menu service command). */
Kashif.sayed
parents:
diff changeset
   111
    KAiwCmdIntent = 0x10275114,
Kashif.sayed
parents:
diff changeset
   112
    
Kashif.sayed
parents:
diff changeset
   113
    /** Add items to intent. (Should be used as a base service command). */
Kashif.sayed
parents:
diff changeset
   114
    KAiwCmdAddToIntent = 0x10275115,
Kashif.sayed
parents:
diff changeset
   115
    
Kashif.sayed
parents:
diff changeset
   116
    /** Remove items from intent. (Should be used as a base service command). */
Kashif.sayed
parents:
diff changeset
   117
    KAiwCmdRemoveFromIntent = 0x10275116,
Kashif.sayed
parents:
diff changeset
   118
    
Kashif.sayed
parents:
diff changeset
   119
    /** Client can request that map should be displayed on screen. */ 
Kashif.sayed
parents:
diff changeset
   120
    KAiwCmdMnShowMap = 0x10206904,
Kashif.sayed
parents:
diff changeset
   121
    
Kashif.sayed
parents:
diff changeset
   122
    /** Allows to start navigation to desired destination. */
Kashif.sayed
parents:
diff changeset
   123
    KAiwCmdMnNavigateTo = 0x10206905,
Kashif.sayed
parents:
diff changeset
   124
    
Kashif.sayed
parents:
diff changeset
   125
    /** Starts reverse geocoding request: finding address for given coordinate. */
Kashif.sayed
parents:
diff changeset
   126
    KAiwCmdMnAddrByCoord = 0x10206906,
Kashif.sayed
parents:
diff changeset
   127
    
Kashif.sayed
parents:
diff changeset
   128
    /** Starts geocoding request: finding coordinate by given address. */
Kashif.sayed
parents:
diff changeset
   129
    KAiwCmdMnCoordByAddr = 0x10206907,    
Kashif.sayed
parents:
diff changeset
   130
    
Kashif.sayed
parents:
diff changeset
   131
    /** Allows client to request that user shall select a location from map. */
Kashif.sayed
parents:
diff changeset
   132
    KAiwCmdMnSelectFromMap = 0x10206908,
Kashif.sayed
parents:
diff changeset
   133
    
Kashif.sayed
parents:
diff changeset
   134
    /** Send via Bluetooth. */
Kashif.sayed
parents:
diff changeset
   135
    KAiwCmdSendViaBT = 0x10281894,   
Kashif.sayed
parents:
diff changeset
   136
	
Kashif.sayed
parents:
diff changeset
   137
    /** Send via Irda. */
Kashif.sayed
parents:
diff changeset
   138
    KAiwCmdSendViaIR = 0x10281895,
Kashif.sayed
parents:
diff changeset
   139
    
Kashif.sayed
parents:
diff changeset
   140
    /** Enterprise telephony. */
Kashif.sayed
parents:
diff changeset
   141
    KAiwCmdEnterpriseTel = 0x20001FC6,  
Kashif.sayed
parents:
diff changeset
   142
Kashif.sayed
parents:
diff changeset
   143
    /** Rotate image etc. */
Kashif.sayed
parents:
diff changeset
   144
    KAiwCmdRotate = 0x10281F96,
Kashif.sayed
parents:
diff changeset
   145
    
Kashif.sayed
parents:
diff changeset
   146
    /** Rotate device screen. */
Kashif.sayed
parents:
diff changeset
   147
    KAiwCmdRotateScreen = 0x10281F97,
Kashif.sayed
parents:
diff changeset
   148
    
Kashif.sayed
parents:
diff changeset
   149
    /** Set call image. */
Kashif.sayed
parents:
diff changeset
   150
    KAiwCmdCallImage = 0x1028245E,
Kashif.sayed
parents:
diff changeset
   151
    
Kashif.sayed
parents:
diff changeset
   152
    /** Give different objects to another device using Near Field Communications. */
Kashif.sayed
parents:
diff changeset
   153
    KAiwCmdNFCGive = 0x1028245F,
Kashif.sayed
parents:
diff changeset
   154
    
Kashif.sayed
parents:
diff changeset
   155
    /** Start listening secondary bearer (e.g. Bluetooth) setup events via Near Field Communication. */
Kashif.sayed
parents:
diff changeset
   156
    KAiwCmdNFCEasySetup = 0x2001FE32,
Kashif.sayed
parents:
diff changeset
   157
    
Kashif.sayed
parents:
diff changeset
   158
    /** SettingWizard Email view activation. */
Kashif.sayed
parents:
diff changeset
   159
    KAiwCmdSettingWizardEmailView = 0x10281C95,
Kashif.sayed
parents:
diff changeset
   160
    
Kashif.sayed
parents:
diff changeset
   161
    /** In-device search. */
Kashif.sayed
parents:
diff changeset
   162
    KAiwCmdContentSearch = 0x10282844,
Kashif.sayed
parents:
diff changeset
   163
    
Kashif.sayed
parents:
diff changeset
   164
	/** A special service command enabling consumer to attach for all relevant 
Kashif.sayed
parents:
diff changeset
   165
	AIW services for a certain object. */
Kashif.sayed
parents:
diff changeset
   166
	KAiwCmdAnyCmdForObject = 0x102823F1,
Kashif.sayed
parents:
diff changeset
   167
	
Kashif.sayed
parents:
diff changeset
   168
	/** To support VoIP settings provisioning with plugins **/
Kashif.sayed
parents:
diff changeset
   169
	KAiwCmdEasyVoIPProvisioning = 0x10283099,
Kashif.sayed
parents:
diff changeset
   170
	
Kashif.sayed
parents:
diff changeset
   171
	/** Assign Screensaver*/
Kashif.sayed
parents:
diff changeset
   172
    KAiwCmdAssignScreenSaver = 0x1028309A,      
Kashif.sayed
parents:
diff changeset
   173
	
Kashif.sayed
parents:
diff changeset
   174
	/*Location Trail*/ 
Kashif.sayed
parents:
diff changeset
   175
	KAiwCmdLocationTrail=0x10282845
Kashif.sayed
parents:
diff changeset
   176
/*<branchInfo originator="gronoff" since="08-04-18" category="new_feature" error=”none”>
Kashif.sayed
parents:
diff changeset
   177
<pf_5250_OFF_CYCLE_SW_INT>
Kashif.sayed
parents:
diff changeset
   178
</branchInfo>*/
Kashif.sayed
parents:
diff changeset
   179
// BRANCH 08-04-18 : gronoff
Kashif.sayed
parents:
diff changeset
   180
        ,
Kashif.sayed
parents:
diff changeset
   181
	/** Converged service plugin and UI extension plugin*/
Kashif.sayed
parents:
diff changeset
   182
	KAiwCmdCSCServicePlugins = 0x1020E56F,
Kashif.sayed
parents:
diff changeset
   183
	KAiwCmdCSCUiExtensionPlugins = 0x10282EF7,
Kashif.sayed
parents:
diff changeset
   184
	KAiwCmdSaveToCalendar = 0x2002A507
Kashif.sayed
parents:
diff changeset
   185
// BRANCH_END 08-04-18 : gronoff
Kashif.sayed
parents:
diff changeset
   186
    };
Kashif.sayed
parents:
diff changeset
   187
Kashif.sayed
parents:
diff changeset
   188
Kashif.sayed
parents:
diff changeset
   189
// Service command strings. These strings are used in service provider's
Kashif.sayed
parents:
diff changeset
   190
// opaque data field to specify what service command(s) the provider implements.
Kashif.sayed
parents:
diff changeset
   191
Kashif.sayed
parents:
diff changeset
   192
#define KAiwCmdNoneStr                    "00000000"
Kashif.sayed
parents:
diff changeset
   193
#define KAiwCmdNewStr                     "101F864C"
Kashif.sayed
parents:
diff changeset
   194
#define KAiwCmdEditStr                    "101F864D"
Kashif.sayed
parents:
diff changeset
   195
#define KAiwCmdSelectStr                  "101F864E"
Kashif.sayed
parents:
diff changeset
   196
#define KAiwCmdViewStr                    "101F864F"
Kashif.sayed
parents:
diff changeset
   197
#define KAiwCmdPrintStr                   "101F8666"
Kashif.sayed
parents:
diff changeset
   198
#define KAiwCmdCallStr                    "101F86B0"
Kashif.sayed
parents:
diff changeset
   199
#define KAiwCmdSendStr                    "101F86B3"
Kashif.sayed
parents:
diff changeset
   200
#define KAiwCmdAssignStr                  "101F8716"
Kashif.sayed
parents:
diff changeset
   201
#define KAiwCmdShareStr                   "101F871E"
Kashif.sayed
parents:
diff changeset
   202
#define KAiwCmdSynchronizeStr             "101F8724"
Kashif.sayed
parents:
diff changeset
   203
#define KAiwCmdSearchStr                  "101F87DF"
Kashif.sayed
parents:
diff changeset
   204
#define KAiwCmdCopy                       "101F87DE"
Kashif.sayed
parents:
diff changeset
   205
#define KAiwCmdPrintPreviewStr            "101FD656"
Kashif.sayed
parents:
diff changeset
   206
#define KAiwCmdPoCStr                     "101FD657" 
Kashif.sayed
parents:
diff changeset
   207
#define KAiwCmdSynchronizeSelectedStr     "1020720C"
Kashif.sayed
parents:
diff changeset
   208
#define KAiwCmdViewOnlineStr              "102072EA" 
Kashif.sayed
parents:
diff changeset
   209
#define KAiwCmdUploadStr                  "102072EB"
Kashif.sayed
parents:
diff changeset
   210
#define KAiwCmdXpressTransferStr          "10207430"
Kashif.sayed
parents:
diff changeset
   211
#define KAiwCmdUPnPCopyStr                "10207431"
Kashif.sayed
parents:
diff changeset
   212
#define KAiwCmdUPnPMoveStr                "10207432"
Kashif.sayed
parents:
diff changeset
   213
#define KAiwCmdUPnPPlayStr                "10207433"
Kashif.sayed
parents:
diff changeset
   214
#define KAiwCmdUPnPOpenStr                "10207434"
Kashif.sayed
parents:
diff changeset
   215
#define KAiwCmdUPnPEnableExternalStr      "10207435"
Kashif.sayed
parents:
diff changeset
   216
#define KAiwCmdHelpStr                    "10275075"
Kashif.sayed
parents:
diff changeset
   217
#define KAiwCmdIntentStr                  "10275114"
Kashif.sayed
parents:
diff changeset
   218
#define KAiwCmdAddToIntentStr             "10275115"
Kashif.sayed
parents:
diff changeset
   219
#define KAiwCmdRemoveFromIntentStr        "10275116"
Kashif.sayed
parents:
diff changeset
   220
#define KAiwCmdMnShowMapStr               "10206904"
Kashif.sayed
parents:
diff changeset
   221
#define KAiwCmdMnNavigateToStr            "10206905"
Kashif.sayed
parents:
diff changeset
   222
#define KAiwCmdMnAddrByCoordStr           "10206906"
Kashif.sayed
parents:
diff changeset
   223
#define KAiwCmdMnCoordByAddrStr           "10206907"
Kashif.sayed
parents:
diff changeset
   224
#define KAiwCmdMnSelectFromMapStr         "10206908"
Kashif.sayed
parents:
diff changeset
   225
#define KAiwCmdSendViaBTStr               "10281894"
Kashif.sayed
parents:
diff changeset
   226
#define KAiwCmdSendViaIRStr               "10281895"
Kashif.sayed
parents:
diff changeset
   227
#define KAiwCmdEnterpriseTelStr           "20001FC6"
Kashif.sayed
parents:
diff changeset
   228
#define KAiwCmdRotateStr                  "10281F96"
Kashif.sayed
parents:
diff changeset
   229
#define KAiwCmdRotateScreenStr            "10281F97"
Kashif.sayed
parents:
diff changeset
   230
#define KAiwCmdCallImageStr               "1028245E"
Kashif.sayed
parents:
diff changeset
   231
#define KAiwCmdNFCGiveStr                 "1028245F"
Kashif.sayed
parents:
diff changeset
   232
#define KAiwCmdNFCEasySetupStr            "2001FE32"
Kashif.sayed
parents:
diff changeset
   233
#define KAiwCmdSettingWizardEmailViewStr  "10281C95"
Kashif.sayed
parents:
diff changeset
   234
#define KAiwCmdContentSearchStr           "10282844"
Kashif.sayed
parents:
diff changeset
   235
#define KAiwCmdAnyCmdForObjectStr         "102823F1"
Kashif.sayed
parents:
diff changeset
   236
#define KAiwCmdEasyVoIPProvisioningStr    "10283099"
Kashif.sayed
parents:
diff changeset
   237
#define KAiwCmdAssignScreenSaverStr       "1028309A"
Kashif.sayed
parents:
diff changeset
   238
#define KAiwCmdLocationTrail              "10282845"
Kashif.sayed
parents:
diff changeset
   239
/*<branchInfo originator="gronoff" since="08-04-18" category="new_feature" error=”none”>
Kashif.sayed
parents:
diff changeset
   240
<pf_5250_OFF_CYCLE_SW_INT>
Kashif.sayed
parents:
diff changeset
   241
</branchInfo>*/
Kashif.sayed
parents:
diff changeset
   242
// BRANCH 08-04-18 : gronoff
Kashif.sayed
parents:
diff changeset
   243
#define	KAiwCmdCSCServicePluginsStr  	  "1020E56F"
Kashif.sayed
parents:
diff changeset
   244
#define	KAiwCmdCSCUiExtensionPluginsStr   "10282EF7"
Kashif.sayed
parents:
diff changeset
   245
#define KAiwCmdSaveToCalendarStr          "2002A507"
Kashif.sayed
parents:
diff changeset
   246
// BRANCH_END 08-04-18 : gronoff
Kashif.sayed
parents:
diff changeset
   247
Kashif.sayed
parents:
diff changeset
   248
/**
Kashif.sayed
parents:
diff changeset
   249
* Service command options (bits) to alter command handling behaviour.
Kashif.sayed
parents:
diff changeset
   250
*/
Kashif.sayed
parents:
diff changeset
   251
enum TAiwServiceCmdOptions
Kashif.sayed
parents:
diff changeset
   252
    {
Kashif.sayed
parents:
diff changeset
   253
    /**
Kashif.sayed
parents:
diff changeset
   254
    * Consumer wants asynchronous command handling.
Kashif.sayed
parents:
diff changeset
   255
    * The default is synchronous command handling.
Kashif.sayed
parents:
diff changeset
   256
    * In asynchronous case consumer needs to pass a callback to provider.
Kashif.sayed
parents:
diff changeset
   257
    */
Kashif.sayed
parents:
diff changeset
   258
    KAiwOptASyncronous = 0x0001,
Kashif.sayed
parents:
diff changeset
   259
Kashif.sayed
parents:
diff changeset
   260
    /**
Kashif.sayed
parents:
diff changeset
   261
    * Consumer wants provider to make a callback to check coming output
Kashif.sayed
parents:
diff changeset
   262
    * parameters prior returning from service command handling.
Kashif.sayed
parents:
diff changeset
   263
    * Consumer needs to pass a callback to provider.
Kashif.sayed
parents:
diff changeset
   264
    */
Kashif.sayed
parents:
diff changeset
   265
    KAiwOptOutParamCheck = 0x0002,
Kashif.sayed
parents:
diff changeset
   266
Kashif.sayed
parents:
diff changeset
   267
    /**
Kashif.sayed
parents:
diff changeset
   268
    * Consumer tells provider that it is prepared to handle
Kashif.sayed
parents:
diff changeset
   269
    * callback events for possibly incomplete/wrong parameter list. 
Kashif.sayed
parents:
diff changeset
   270
    */
Kashif.sayed
parents:
diff changeset
   271
    KAiwOptInParamCheck = 0x0004,
Kashif.sayed
parents:
diff changeset
   272
    
Kashif.sayed
parents:
diff changeset
   273
    /**
Kashif.sayed
parents:
diff changeset
   274
    * Consumer wants to cancel an asynchronous AIW service. 
Kashif.sayed
parents:
diff changeset
   275
    * When a consumer wants to cancel the asynchronous service that a provider
Kashif.sayed
parents:
diff changeset
   276
    * is executing, it should call ExecuteMenuCmdL() or ExecuteServiceCmdL() 
Kashif.sayed
parents:
diff changeset
   277
    * with the same parameters as when requesting the service, but set this 
Kashif.sayed
parents:
diff changeset
   278
    * cancel bit on. The cancel operation itself is synchronous, i.e. the 
Kashif.sayed
parents:
diff changeset
   279
    * provider must call the consumer's callback with KAiwEventCanceled before 
Kashif.sayed
parents:
diff changeset
   280
    * the Execute*CmdL() returns.
Kashif.sayed
parents:
diff changeset
   281
    */
Kashif.sayed
parents:
diff changeset
   282
    KAiwOptCancel = 0x0008
Kashif.sayed
parents:
diff changeset
   283
    };
Kashif.sayed
parents:
diff changeset
   284
Kashif.sayed
parents:
diff changeset
   285
Kashif.sayed
parents:
diff changeset
   286
/**
Kashif.sayed
parents:
diff changeset
   287
* Service classes (UID). Technically these are same as service interface UIDs.
Kashif.sayed
parents:
diff changeset
   288
*/
Kashif.sayed
parents:
diff changeset
   289
enum TAiwServiceClass
Kashif.sayed
parents:
diff changeset
   290
    {
Kashif.sayed
parents:
diff changeset
   291
    /** 
Kashif.sayed
parents:
diff changeset
   292
    * None. 
Kashif.sayed
parents:
diff changeset
   293
    */
Kashif.sayed
parents:
diff changeset
   294
    KAiwClassNone = 0x0,
Kashif.sayed
parents:
diff changeset
   295
Kashif.sayed
parents:
diff changeset
   296
    /**
Kashif.sayed
parents:
diff changeset
   297
    * Base service (no UI expected). 
Kashif.sayed
parents:
diff changeset
   298
    * Every other class must implement this always!
Kashif.sayed
parents:
diff changeset
   299
    */
Kashif.sayed
parents:
diff changeset
   300
    KAiwClassBase = 0x101F8650,
Kashif.sayed
parents:
diff changeset
   301
Kashif.sayed
parents:
diff changeset
   302
    /** 
Kashif.sayed
parents:
diff changeset
   303
    * Filter service class. 
Kashif.sayed
parents:
diff changeset
   304
    */
Kashif.sayed
parents:
diff changeset
   305
    KAiwClassFilter = 0x101F8651,
Kashif.sayed
parents:
diff changeset
   306
Kashif.sayed
parents:
diff changeset
   307
    /** 
Kashif.sayed
parents:
diff changeset
   308
    * Menu service class (offers menu based services).
Kashif.sayed
parents:
diff changeset
   309
    */
Kashif.sayed
parents:
diff changeset
   310
    KAiwClassMenu = 0x101F8652,
Kashif.sayed
parents:
diff changeset
   311
Kashif.sayed
parents:
diff changeset
   312
    /** 
Kashif.sayed
parents:
diff changeset
   313
    * Stub service class.
Kashif.sayed
parents:
diff changeset
   314
    */
Kashif.sayed
parents:
diff changeset
   315
    KAiwClassStub = 0x101F8653,
Kashif.sayed
parents:
diff changeset
   316
       
Kashif.sayed
parents:
diff changeset
   317
    /** 
Kashif.sayed
parents:
diff changeset
   318
    * View service class (offers view based services).
Kashif.sayed
parents:
diff changeset
   319
    */
Kashif.sayed
parents:
diff changeset
   320
    KAiwClassView = 0x101F8654,
Kashif.sayed
parents:
diff changeset
   321
Kashif.sayed
parents:
diff changeset
   322
    /** 
Kashif.sayed
parents:
diff changeset
   323
    * This class is for R&D purposes.  
Kashif.sayed
parents:
diff changeset
   324
    */
Kashif.sayed
parents:
diff changeset
   325
    KAiwClassDebug = 0x101F866B
Kashif.sayed
parents:
diff changeset
   326
    };
Kashif.sayed
parents:
diff changeset
   327
Kashif.sayed
parents:
diff changeset
   328
Kashif.sayed
parents:
diff changeset
   329
/**
Kashif.sayed
parents:
diff changeset
   330
* Event codes. To be used with HandleNotifyL method.
Kashif.sayed
parents:
diff changeset
   331
*/
Kashif.sayed
parents:
diff changeset
   332
enum
Kashif.sayed
parents:
diff changeset
   333
    {
Kashif.sayed
parents:
diff changeset
   334
    /**
Kashif.sayed
parents:
diff changeset
   335
    * Asynchronous service informs consumer to prepare itself for 
Kashif.sayed
parents:
diff changeset
   336
    * action. 
Kashif.sayed
parents:
diff changeset
   337
    */
Kashif.sayed
parents:
diff changeset
   338
    KAiwEventStarted = 1,
Kashif.sayed
parents:
diff changeset
   339
Kashif.sayed
parents:
diff changeset
   340
    /**
Kashif.sayed
parents:
diff changeset
   341
    * Asynchronous service request completed.
Kashif.sayed
parents:
diff changeset
   342
    */
Kashif.sayed
parents:
diff changeset
   343
    KAiwEventCompleted = 2,
Kashif.sayed
parents:
diff changeset
   344
Kashif.sayed
parents:
diff changeset
   345
    /**
Kashif.sayed
parents:
diff changeset
   346
    * Asynchronous service request canceled.
Kashif.sayed
parents:
diff changeset
   347
    */
Kashif.sayed
parents:
diff changeset
   348
    KAiwEventCanceled = 3,
Kashif.sayed
parents:
diff changeset
   349
    
Kashif.sayed
parents:
diff changeset
   350
    /**
Kashif.sayed
parents:
diff changeset
   351
    * Error during asynchronous service request.
Kashif.sayed
parents:
diff changeset
   352
    */
Kashif.sayed
parents:
diff changeset
   353
    KAiwEventError = 4,
Kashif.sayed
parents:
diff changeset
   354
    
Kashif.sayed
parents:
diff changeset
   355
    /**
Kashif.sayed
parents:
diff changeset
   356
    * Relates to KAiwOptOutParamCheck.
Kashif.sayed
parents:
diff changeset
   357
    */
Kashif.sayed
parents:
diff changeset
   358
    KAiwEventOutParamCheck = 5,
Kashif.sayed
parents:
diff changeset
   359
    
Kashif.sayed
parents:
diff changeset
   360
    /**
Kashif.sayed
parents:
diff changeset
   361
    * Relates to KAiwOptInParamCheck.
Kashif.sayed
parents:
diff changeset
   362
    */
Kashif.sayed
parents:
diff changeset
   363
    KAiwEventInParamCheck = 6,
Kashif.sayed
parents:
diff changeset
   364
    
Kashif.sayed
parents:
diff changeset
   365
    /**
Kashif.sayed
parents:
diff changeset
   366
    * Provider informs consumer that service is no longer available or 
Kashif.sayed
parents:
diff changeset
   367
    * has stopped.
Kashif.sayed
parents:
diff changeset
   368
    */
Kashif.sayed
parents:
diff changeset
   369
    KAiwEventStopped = 7,
Kashif.sayed
parents:
diff changeset
   370
    
Kashif.sayed
parents:
diff changeset
   371
    /**
Kashif.sayed
parents:
diff changeset
   372
    * Provider asks consumer whether Exit can be done (needed at least in 
Kashif.sayed
parents:
diff changeset
   373
    * embedded use cases where server application offers Exit possibility 
Kashif.sayed
parents:
diff changeset
   374
    * to end user, but consumer can not allow Exit due to fact that for
Kashif.sayed
parents:
diff changeset
   375
    * example network connections owned by consumer are open and they need 
Kashif.sayed
parents:
diff changeset
   376
    * to be kept alive).    
Kashif.sayed
parents:
diff changeset
   377
    */
Kashif.sayed
parents:
diff changeset
   378
    KAiwEventQueryExit = 8
Kashif.sayed
parents:
diff changeset
   379
    };
Kashif.sayed
parents:
diff changeset
   380
    
Kashif.sayed
parents:
diff changeset
   381
// ============================================================================
Kashif.sayed
parents:
diff changeset
   382
// Menu item flags for AIW consumers.   
Kashif.sayed
parents:
diff changeset
   383
// ============================================================================ 
Kashif.sayed
parents:
diff changeset
   384
/** 
Kashif.sayed
parents:
diff changeset
   385
 * Always keep the provider menu items in a submenu. 
Kashif.sayed
parents:
diff changeset
   386
 */
Kashif.sayed
parents:
diff changeset
   387
#define AIW_CASCADE_ID               0x01010001
Kashif.sayed
parents:
diff changeset
   388
Kashif.sayed
parents:
diff changeset
   389
/** 
Kashif.sayed
parents:
diff changeset
   390
 * Menu item is placed intelligently either to the main level or a submenu. 
Kashif.sayed
parents:
diff changeset
   391
 */
Kashif.sayed
parents:
diff changeset
   392
#define AIW_INTELLIGENT_CASCADE_ID   0x01010010
Kashif.sayed
parents:
diff changeset
   393
Kashif.sayed
parents:
diff changeset
   394
/** 
Kashif.sayed
parents:
diff changeset
   395
 * Consumer defines the menu title. 
Kashif.sayed
parents:
diff changeset
   396
 */
Kashif.sayed
parents:
diff changeset
   397
#define AIW_LOCK_SUBMENU_TITLE       0x00000020
Kashif.sayed
parents:
diff changeset
   398
Kashif.sayed
parents:
diff changeset
   399
// ============================================================================
Kashif.sayed
parents:
diff changeset
   400
// Criteria item flags for AIW consumers.    
Kashif.sayed
parents:
diff changeset
   401
// ============================================================================
Kashif.sayed
parents:
diff changeset
   402
/** 
Kashif.sayed
parents:
diff changeset
   403
 * Criteria item loadOptions bit, only providers in ROM are accepted. 
Kashif.sayed
parents:
diff changeset
   404
 */
Kashif.sayed
parents:
diff changeset
   405
#define AIW_OPTIONS_ROM_ONLY         0x01
Kashif.sayed
parents:
diff changeset
   406
Kashif.sayed
parents:
diff changeset
   407
// ============================================================================
Kashif.sayed
parents:
diff changeset
   408
// Menu item flags for AIW providers.
Kashif.sayed
parents:
diff changeset
   409
// ============================================================================
Kashif.sayed
parents:
diff changeset
   410
/** 
Kashif.sayed
parents:
diff changeset
   411
 * For providers only: Provider suggests the submenu title. 
Kashif.sayed
parents:
diff changeset
   412
 */
Kashif.sayed
parents:
diff changeset
   413
#define AIW_SUBMENU_TITLE            0x0ff11012
Kashif.sayed
parents:
diff changeset
   414
Kashif.sayed
parents:
diff changeset
   415
#endif // AIW_COMMON_HRH
Kashif.sayed
parents:
diff changeset
   416
Kashif.sayed
parents:
diff changeset
   417
// End of file
Kashif.sayed
parents:
diff changeset
   418
Kashif.sayed
parents:
diff changeset
   419