Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
cmpenum.h
Go to the documentation of this file.
00001 
00012 #pragma once
00013 
00014 #include <cmpresult.h>
00015 
00092 #ifdef CMPCOM
00093 [export]
00094 #endif
00095 enum CMP_ORIENTATION_POSITION
00096 {
00097     CMP_ORIENTATION_UNKNOWN                 = 0x0000,       // Unknown orientation
00098     CMP_ORIENTATION_PORTRAIT                = 0x0001,       // Portrait.  Origin  0 degrees. Tall & narrow. Button(s) at bottom.
00099     CMP_ORIENTATION_PORTRAIT_UPSIDE_DOWN    = 0x0002,       // Portrait.  Flip  180 degrees. Tall & narrow. Button(s) at top.
00100     CMP_ORIENTATION_LANDSCAPE_LEFT          = 0x0003,       // Landscape. Left   90 degrees. Wide & short.  Button(s) at right.
00101     CMP_ORIENTATION_LANDSCAPE_RIGHT         = 0x0004,       // Landscape. Right  90 degrees. Wide & short.  Button(s) at left.
00102 };
00103 
00117 #ifdef CMPCOM
00118 [export, library_block]
00119 #endif
00120 enum CMP_ORIENTATION_FLAG
00121 {
00122     CMP_ORIENTATION_FLAG_LOCK           = 0x0001,
00123     CMP_ORIENTATION_FLAG_FOLLOW_SENSOR  = 0x0002
00124 };
00125 
00126 
00140 #ifdef CMPCOM
00141 [export]
00142 #endif
00143 enum CMP_PICKER_SUPPORT_FLAGS
00144 {
00145     CMP_PICKER_CONTROL_FLAG_SUPPORT         =0x0001,        // Supports basic picker control operation       
00146     CMP_PICKER_CONTROL_FLAG_TITLE_SUPPORT   =0x0002         // Supports adding a title to the picker control 
00147 };
00148 
00154 #define CMP_PICKER_CONTROL_ALL_FLAGS         0x0003
00155 
00185 #ifdef CMPCOM
00186 [export, library_block]
00187 #endif
00188 enum CMP_KEYBOARD_FLAGS
00189 {
00190     CMP_KYBD_FLAG_PHYSICAL              =0x0001,            // Physical keyboard available (get but not set)              
00191     CMP_KYBD_FLAG_VISIBLE               =0x0002,            // Display keyboard visible    (get but not set)              
00192     CMP_KYBD_FLAG_EXT_FLAG              =0x0004,            // Extended keyboard                                          
00193     CMP_KYBD_FLAG_USE_RECT              =0x0008,            // Use rectangle co-ordinates for viewing section of display  
00194     CMP_KYBD_FLAG_AUTO_CORRECT          =0x0010,            // Auto correct text                                          
00195     CMP_KYBD_FLAG_AUTO_CAPITAL          =0x0020,            // Auto-capitalize text                                       
00196     CMP_KYBD_FLAG_RETURN_KEY_TYPE       =0x0040,            // Return key text to show                                    
00197         CMP_KYBD_FLAG_DONT_POPUP_FIRST      =0x0100             // recommend client to not pop up first when receiving this editable control coordinates
00198 };
00199 
00242 #ifdef CMPCOM
00243 [export]
00244 #endif
00245 enum CMP_KEYBOARD_TYPE
00246 {
00247     CMP_KYBD_TYPE_UNKNOWN       = 0x0000,                   // Unknown keyboard type             
00248     CMP_KYBD_TYPE_PHYSICAL      = 0x0001,                   // Physical keyboard                 
00249     CMP_KYBD_TYPE_STANDARD      = 0x0002,                   // Standard keyboard                 
00250     CMP_KYBD_TYPE_NUMBER_PAD    = 0x0003,                   // Numeric keypad                    
00251     CMP_KYBD_TYPE_PHONE_PAD     = 0x0004,                   // Phone keypad                      
00252     CMP_KYBD_TYPE_URL           = 0x0005,                   // URL keyboard                      
00253     CMP_KYBD_TYPE_EMAIL         = 0x0006,                   // Email keyboard                    
00254     CMP_KYBD_TYPE_PHONE_NAME    = 0x0007,                   // Phone name keyboard               
00255     CMP_KYBD_TYPE_NUMBERS_PUNC  = 0x0008,                   // Numbers and punctuation keyboard  
00256     CMP_KYBD_TYPE_DECIMAL_POINT = 0x0009                    // Numeric keypad with decimal point 
00257 };
00258 
00281 #ifdef CMPCOM
00282 [export]
00283 #endif
00284 enum CMP_KEYBOARD_AUTOCAPS
00285 {
00286     CMP_KYBD_AUTO_CAPITAL_NONE      = 0x0000,               // Do not auto capitalize text    
00287     CMP_KYBD_AUTO_CAPITAL_WORDS     = 0x0001,               // Auto-capitalize all words      
00288     CMP_KYBD_AUTO_CAPITAL_SENTENCES = 0x0002,               // Auto-capitalize all sentences  
00289     CMP_KYBD_AUTO_CAPITAL_LETTERS   = 0x0003                // Auto-capitalize all letters    
00290 };
00291 
00331 #ifdef CMPCOM
00332 [export]
00333 #endif
00334 enum CMP_KEYBOARD_RETURNKEY
00335 {
00336     CMP_KYBD_RETURN_KEY_DEFAULT     = 0x0001,           // Return key = default value 
00337     CMP_KYBD_RETURN_KEY_GO          = 0x0002,           // Return key = Go            
00338     CMP_KYBD_RETURN_KEY_GOOGLE      = 0x0003,           // Return key = Google        
00339     CMP_KYBD_RETURN_KEY_JOIN        = 0x0004,           // Return key = Join          
00340     CMP_KYBD_RETURN_KEY_NEXT        = 0x0005,           // Return key = Next          
00341     CMP_KYBD_RETURN_KEY_ROUTE       = 0x0006,           // Return key = Route         
00342     CMP_KYBD_RETURN_KEY_SEARCH      = 0x0007,           // Return key = Search        
00343     CMP_KYBD_RETURN_KEY_SEND        = 0x0008,           // Return key = Send          
00344     CMP_KYBD_RETURN_KEY_DONE        = 0x0009            // Return key = Done          
00345 };
00346 
00347 
00364 #ifdef CMPCOM
00365 [export]
00366 #endif
00367 enum CMP_SCROLL_MODE
00368 {
00369     CMP_SCROLLMODE_MOUSEWHEEL   = 0x0001,               // Simulate touch as mousewheel 
00370     CMP_SCROLLMODE_DRAG         = 0x0002,               // Simulate touch as drag       
00371     CMP_SCROLLMODE_PAN          = 0x0003                // Simulate touch as pan        
00372 };
00373 
00374 
00395 #ifdef CMPCOM
00396 [export]
00397 #endif
00398 enum CMP_BUTTON_ID
00399 {
00400     CMP_BUTTON_BACK   =  0x0001,            // Back button        
00401     CMP_BUTTON_SEARCH =  0x0002,            // Search button      
00402     CMP_BUTTON_HOME   =  0x0003,            // Home button        
00403     CMP_BUTTON_MENU   =  0x0004             // Menu button        
00404 };
00405 
00420 #ifdef CMPCOM
00421 [export]
00422 #endif
00423 enum CMP_BUTTON_TARGET
00424 {
00425     CMP_BUTTON_TARGET_HOST       =  0x0001,         // Button events sent to host
00426     CMP_BUTTON_TARGET_CLIENT     =  0x0002          // Button event kept at client 
00427 };
00428 
00429 
00444 #ifdef CMPCOM
00445 [export]
00446 #endif
00447 enum CMP_IMAGE_FORMAT
00448 {
00449     CMP_IMAGE_FORMAT_JPEG = 0x0001,             // JPEG format 
00450     CMP_IMAGE_FORMAT_PNG  = 0x0002              // PNG format
00451 };
00452 
00458 #define IMAGE_FORMAT_SUPPORT_ALL    0x0003
00459 
00460 
00497 #ifdef CMPCOM
00498 [export, library_block]
00499 #endif
00500 enum CMP_SUPPORTED_ORIENTATIONS
00501 {
00502     CMP_SO_ALL                      = 0x0F,                 // application supports all orientations
00503 
00504     CMP_SO_LANDSCAPE                = 0x03,                 // application only supports landscape orientations
00505     CMP_SO_PORTRAIT                 = 0x0C,                 // application only supports portrait orientation
00506 
00507     CMP_SO_LANDSCAPE_LEFT           = 0x01,                 // application only supports landscape left
00508     CMP_SO_LANDSCAPE_RIGHT          = 0x02,                 // application only supports landscape right
00509 
00510     CMP_SO_PORTRAIT_UP              = 0x04,                 // application only supports portrait up
00511     CMP_SO_PORTRAIT_DOWN            = 0x08,                 // application only supports portrait down
00512 
00513     CMP_SO_NO_PORTRAIT_DOWN         = 0x07,                 // application supports everything but portrait down
00514 };
00515 
00584 #ifdef CMPCOM
00585 [export, v1_enum, library_block]
00586 #endif
00587 enum CMP_COMPONENT_ID
00588 {
00589 
00590 // Component types
00591 COMPONENT_COMMON    =0x0000,
00592 COMPONENT_BUTTON    =0x0001,
00593 COMPONENT_CAMERA    =0x0002,
00594 COMPONENT_RECEIVER  =0x0003,
00595 COMPONENT_DEVICE    =0x0004,
00596 COMPONENT_DISPLAY   =0x0005,
00597 COMPONENT_KEYBOARD  =0x0007,
00598 COMPONENT_MESSAGE   =0x0008,
00599 COMPONENT_PHONE     =0x0009,
00600 COMPONENT_PICKER    =0x000A,
00601 COMPONENT_EVENT     =0x000C,
00602 COMPONENT_CHANNEL   =0x000D,
00603 COMPONENT_NOTIFY    =0x000E,
00604 COMPONENT_SESSION   =0x000F,
00605 COMPONENT_CAPS      =0x0010,
00606 COMPONENT_CONTROLS  =0x0011,
00607 COMPONENT_GVCH      =0x0012,
00608 COMPONENT_VDO       =0x0013,
00609 COMPONENT_CAPTURE   =0x0014,
00610 COMPONENT_EMULATOR  =0x0015,
00611 };
00612 
01183 #ifdef CMPCOM
01184 [export, v1_enum, library_block]
01185 #endif
01186 enum CMP_ERROR_ID
01187 {
01188     // Common
01189     CMP_NO_ERROR                           =STATUS_CODE(COMPONENT_COMMON, 0x0000),  // (0x00000000) No error                       
01190     CMP_ERROR_INVALID_FUNCTION             =STATUS_CODE(COMPONENT_COMMON, 0x0001),  // (0x00000001) Invalid Function               
01191     CMP_ERROR_NOT_FOUND                    =STATUS_CODE(COMPONENT_COMMON, 0x0002),  // (0x00000002) Not found                      
01192     CMP_ERROR_NOT_SUPPORTED                =STATUS_CODE(COMPONENT_COMMON, 0x0003),  // (0x00000003) Not supported                  
01193     CMP_ERROR_INVALID_PARAMETER            =STATUS_CODE(COMPONENT_COMMON, 0x0004),  // (0x00000004) Invalid parameter              
01194     CMP_ERROR_NULL_PARAMETER               =STATUS_CODE(COMPONENT_COMMON, 0x0005),  // (0x00000005) Null parameter                 
01195     CMP_ERROR_COM_INITIALIZE               =STATUS_CODE(COMPONENT_COMMON, 0x0006),  // (0x00000006) COM did not initialize         
01196     CMP_ERROR_COM_CREATE_INSTANCE          =STATUS_CODE(COMPONENT_COMMON, 0x0007),  // (0x00000007) COM instance not created       
01197     CMP_ERROR_CONVERTING_UTF8              =STATUS_CODE(COMPONENT_COMMON, 0x0008),  // (0x00000008) Error converting UTF-8 string  
01198     CMP_ERROR_CONVERTING_UTF16_TO_UTF8     =STATUS_CODE(COMPONENT_COMMON, 0x0009),  // (0x00000009) Error converting UTF-16 to UTF-8
01199     CMP_ERROR_MISSING_INTERFACE            =STATUS_CODE(COMPONENT_COMMON, 0x000A),  // (0x0000000A) Missing COM interface          
01200     CMP_ERROR_INVALID_SIZE                 =STATUS_CODE(COMPONENT_COMMON, 0x000B),  // (0x0000000B) Invalid size                   
01201     CMP_ERROR_ACCESS_DENIED                =STATUS_CODE(COMPONENT_COMMON, 0x000C),  // (0x0000000C) Access Denied                  
01202     CMP_ERROR_REGISTERING_INTERFACES       =STATUS_CODE(COMPONENT_COMMON, 0x000D),  // (0x0000000D) Error registering interfaces   
01203     CMP_ERROR_TIMEOUT                      =STATUS_CODE(COMPONENT_COMMON, 0x000E),  // (0x0000000E) Timeout error                  
01204     CMP_ERROR_UTF8_TO_UTF16_LENGTH         =STATUS_CODE(COMPONENT_COMMON, 0x000F),  // (0x0000000F) Error with UTF-8 to UTF-16 length
01205     CMP_ERROR_UTF16_TO_UTF8_LENGTH         =STATUS_CODE(COMPONENT_COMMON, 0x0010),  // (0x00000010) Error with UTF-16 to UTF-8 length
01206     CMP_ERROR_BUFFER_TOO_SMALL             =STATUS_CODE(COMPONENT_COMMON, 0x0011),  // (0x00000011) Buffer too small               
01207     CMP_ERROR_NOT_ENOUGH_MEMORY            =STATUS_CODE(COMPONENT_COMMON, 0x0012),  // (0x00000012) Not enough memory              
01208     CMP_ERROR_NOT_FOREGROUND_WINDOW        =STATUS_CODE(COMPONENT_COMMON, 0x0013),  // (0x00000013) Not foreground window          
01209     CMP_ERROR_SESSION_NOT_FOUND            =STATUS_CODE(COMPONENT_COMMON, 0x0014),  // (0x00000014) Session not found              
01210     CMP_ERROR_SYSTEM_HOOK_FAILED           =STATUS_CODE(COMPONENT_COMMON, 0x0015),  // (0x00000015) Windows system hook failed     
01211     CMP_ERROR_NOT_CONNECTED                =STATUS_CODE(COMPONENT_COMMON, 0x0016),  // (0x00000016) Not connected                  
01212     CMP_ERROR_INVALID_HANDLE               =STATUS_CODE(COMPONENT_COMMON, 0x0017),  // (0x00000017) Invalid Handle                 
01213     CMP_ERROR_GETTING_SAFEARRAY_ELEMENT    =STATUS_CODE(COMPONENT_COMMON, 0x0018),  // (0x00000018) Error getting safearray element
01214     CMP_ERROR_BUFFER_OVERFLOW              =STATUS_CODE(COMPONENT_COMMON, 0x0019),  // (0x00000019) Buffer overflow                
01215     CMP_ERROR_PACKET_FIELD                 =STATUS_CODE(COMPONENT_COMMON, 0x001A),  // (0x0000001A) Error with packet field        
01216     CMP_ERROR_UNRECOGNIZED_STORAGE_PATH    =STATUS_CODE(COMPONENT_COMMON, 0x001B),  // (0x0000001B) Unrecognized storage path      
01217     CMP_ERROR_PACKET_TOO_SMALL             =STATUS_CODE(COMPONENT_COMMON, 0x001C),  // (0x0000001C) Packet too small               
01218     CMP_ERROR_GETTING_API_VERSION          =STATUS_CODE(COMPONENT_COMMON, 0x001D),  // (0x0000001D) Error getting API version      
01219     CMP_ERROR_CREATING_OBJECT              =STATUS_CODE(COMPONENT_COMMON, 0x001E),  // (0x0000001E) Error creating object          
01220     CMP_ERROR_INVALID_PACKET_FIELD_OFFSET  =STATUS_CODE(COMPONENT_COMMON, 0x001F),  // (0x0000001F) Invalid packet field offset    
01221     CMP_ERROR_INVALID_PACKET_FIELD_LENGTH  =STATUS_CODE(COMPONENT_COMMON, 0x0020),  // (0x00000020) Invalid packet field length    
01222     CMP_ERROR_PACKET_TOO_BIG               =STATUS_CODE(COMPONENT_COMMON, 0x0021),  // (0x00000021) Packet too big                 
01223     CMP_ERROR_FILE_NOT_FOUND               =STATUS_CODE(COMPONENT_COMMON, 0x0022),  // (0x00000022) File not found                 
01224     CMP_ERROR_INTERNAL_ERROR               =STATUS_CODE(COMPONENT_COMMON, 0x0023),  // (0x00000023) Internal error                 
01225     CMP_ERROR_SERVICE_DOES_NOT_EXIST       =STATUS_CODE(COMPONENT_COMMON, 0x0024),  // (0x00000024) Service does not exist         
01226     CMP_ERROR_GET_FILE_PATH                =STATUS_CODE(COMPONENT_COMMON, 0x0025),  // (0x00000025) Error getting file path        
01227     CMP_ERROR_BIND_RESPONSE_PACKET         =STATUS_CODE(COMPONENT_COMMON, 0x0026),  // (0x00000026) Error with bind response packet
01228     CMP_ERROR_PICKER_SHOW_PACKET           =STATUS_CODE(COMPONENT_COMMON, 0x0027),  // (0x00000027) Error with picker show packet  
01229     CMP_ERROR_INVALID_PROCESS_ID           =STATUS_CODE(COMPONENT_COMMON, 0x0028),  // (0x00000028) Invalid process Id             
01230     CMP_ERROR_INSUFFICIENT_BUFFER          =STATUS_CODE(COMPONENT_COMMON, 0x0029),  // (0x00000029) Insufficient buffer            
01231     CMP_ERROR_INVALID_FLAGS                =STATUS_CODE(COMPONENT_COMMON, 0x002A),  // (0x0000002A) Invalid flags                  
01232     CMP_ERROR_NO_UNICODE_TRANSLATION       =STATUS_CODE(COMPONENT_COMMON, 0x002B),  // (0x0000002B) No Unicode translation         
01233     CMP_ERROR_CLIENT_DRIVE_UNAVAILABLE     =STATUS_CODE(COMPONENT_COMMON, 0x002C),  // (0x0000002C) Client drive unavailable       
01234     CMP_ERROR_SD_CARD_UNMOUNTED            =STATUS_CODE(COMPONENT_COMMON, 0x002D),  // (0x0000002D) SD card unmounted              
01235     CMP_ERROR_NETWORK_ENUMERATE            =STATUS_CODE(COMPONENT_COMMON, 0x002E),  // (0x0000002E) Error with network enumerate   
01236     CMP_ERROR_NOT_CONTAINER                =STATUS_CODE(COMPONENT_COMMON, 0x002F),  // (0x0000002F) Not network container          
01237     CMP_ERROR_NO_NETWORK                   =STATUS_CODE(COMPONENT_COMMON, 0x0030),  // (0x00000030) No network                     
01238     CMP_ERROR_INVALID_ADDRESS              =STATUS_CODE(COMPONENT_COMMON, 0x0031),  // (0x00000031) Invalid address                
01239     CMP_ERROR_NO_MORE_ITEMS                =STATUS_CODE(COMPONENT_COMMON, 0x0032),  // (0x00000032) No more items                  
01240     CMP_ERROR_MORE_DATA                    =STATUS_CODE(COMPONENT_COMMON, 0x0033),  // (0x00000033) More data available            
01241     CMP_ERROR_LOADING_DLL                  =STATUS_CODE(COMPONENT_COMMON, 0x0034),  // (0x00000034) Could not load DLL
01242     CMP_ERROR_INTERFACE_NOT_AVAILABLE      =STATUS_CODE(COMPONENT_COMMON, 0x0035),  // (0x00000035) CMP Interface not available
01243     CMP_ERROR_GENERATING_HASH_VALUE        =STATUS_CODE(COMPONENT_COMMON, 0x0036),  // (0x00000036) Could not generate hash value
01244     CMP_ERROR_GENERATING_RANDOM_DATA       =STATUS_CODE(COMPONENT_COMMON, 0x0037),  // (0x00000037) Could not generate random data
01245     CMP_ERROR_CREATING_INTERNAL_CLASS      =STATUS_CODE(COMPONENT_COMMON, 0x0038),  // (0x00000038) Error creating internal window class
01246     CMP_ERROR_CREATING_INTERNAL_WINDOW     =STATUS_CODE(COMPONENT_COMMON, 0x0039),  // (0x00000039) Error creating internal window
01247     CMP_ERROR_CREATING_THREAD              =STATUS_CODE(COMPONENT_COMMON, 0x003A),  // (0x0000003A) Error creating thread
01248     CMP_ERROR_CLASS_ALREADY_EXISTS         =STATUS_CODE(COMPONENT_COMMON, 0x003B),  // (0x0000003B) Window class is already there
01249     CMP_ERROR_PREVIOUS_REQUEST_PENDING     =STATUS_CODE(COMPONENT_COMMON, 0x003C),  // (0x0000003C) The request is already pending
01250 
01251     //Button
01252     CMP_BUTTON_NO_ERROR                    =STATUS_CODE(COMPONENT_BUTTON, 0x0000),  //  (0x00010000) No error                      
01253     CMP_ERROR_UNSUPPORTED_BUTTON_ID        =STATUS_CODE(COMPONENT_BUTTON, 0x0001),  //  (0x00010001) Button Id not supported       
01254     CMP_ERROR_SET_BUTTON_TARGET            =STATUS_CODE(COMPONENT_BUTTON, 0x0002),  //  (0x00010002) Error SetButtonTarget         
01255     CMP_ERROR_GET_BUTTON_TARGET            =STATUS_CODE(COMPONENT_BUTTON, 0x0003),  //  (0x00010003) Error GetButtonTarget         
01256     CMP_ERROR_GET_BUTTON_TARGET_TIMEOUT    =STATUS_CODE(COMPONENT_BUTTON, 0x0004),  //  (0x00010004) Error GetButtonTarget timeout 
01257 
01258     //Camera
01259     CMP_CAMERA_NO_ERROR                    =STATUS_CODE(COMPONENT_CAMERA, 0x0000),  // (0x00020000) No error                      
01260     CMP_ERROR_TAKE_PICTURE                 =STATUS_CODE(COMPONENT_CAMERA, 0x0001),  // (0x00020001) Error with TakePicture        
01261     CMP_ERROR_NO_CAMERA                    =STATUS_CODE(COMPONENT_CAMERA, 0x0002),  // (0x00020002) No camera                     
01262     CMP_ERROR_UNSUPPORTED_IMAGE_FORMAT     =STATUS_CODE(COMPONENT_CAMERA, 0x0003),  // (0x00020003) Unsupported image format      
01263     CMP_ERROR_GET_PICTURE_FILENAME         =STATUS_CODE(COMPONENT_CAMERA, 0x0004),  // (0x00020004) Error GetPictureFilename      
01264     CMP_ERROR_GET_PICTURE_FILENAME_TIMEOUT =STATUS_CODE(COMPONENT_CAMERA, 0x0005),  // (0x00020005) Timeout GetPictureFilename    
01265     CMP_ERROR_CANCEL_TAKE_PICTURE          =STATUS_CODE(COMPONENT_CAMERA, 0x0006),  // (0x00020006) User cancelled taking a picture
01266     CMP_ERROR_REMOVE_PICTURE               =STATUS_CODE(COMPONENT_CAMERA, 0x0007),  // (0x00020007) Error RemovePicture           
01267     CMP_ERROR_GET_PICTURE_STATE_TIMEOUT    =STATUS_CODE(COMPONENT_CAMERA, 0x0008),  // (0x00020008) Timeout GetPictureState       
01268     CMP_ERROR_GET_PICTURE_STATE            =STATUS_CODE(COMPONENT_CAMERA, 0x0009),  // (0x00020009) Error GetPictureState         
01269     CMP_ERROR_ALREADY_TAKING_PICTURE       =STATUS_CODE(COMPONENT_CAMERA, 0x000A),  // (0x0002000A) Camera app is already taking a picture
01270 
01271     //Device
01272     CMP_DEVICE_NO_ERROR                    =STATUS_CODE(COMPONENT_DEVICE, 0x0000),  //  (0x00040000) No error                      
01273     CMP_ERROR_INVALID_PROP_ID              =STATUS_CODE(COMPONENT_DEVICE, 0x0001),  //  (0x00040001) Invalid property Id           
01274     CMP_ERROR_INVALID_PROPERTY_TYPE        =STATUS_CODE(COMPONENT_DEVICE, 0x0002),  //  (0x00040002) Invalid property type         
01275     CMP_ERROR_GET_DEVICE_STRING            =STATUS_CODE(COMPONENT_DEVICE, 0x0003),  //  (0x00040003) Error GetDeviceString         
01276     CMP_ERROR_GET_DEVICE_STRING_TIMEOUT    =STATUS_CODE(COMPONENT_DEVICE, 0x0004),  //  (0x00040004) Error GetDeviceString timeout 
01277     CMP_ERROR_GET_DEVICE_BOOL              =STATUS_CODE(COMPONENT_DEVICE, 0x0005),  //  (0x00040005) Error GetDeviceBool           
01278     CMP_ERROR_GET_DEVICE_BOOL_TIMEOUT      =STATUS_CODE(COMPONENT_DEVICE, 0x0006),  //  (0x00040006) Error GetDeviceBool timeout   
01279     CMP_ERROR_UNSUPPORTED_PROP_ID          =STATUS_CODE(COMPONENT_DEVICE, 0x0007),  //  (0x00040007) Unsupported property Id       
01280 
01281     //Display
01282     CMP_DISPLAY_NO_ERROR                   =STATUS_CODE(COMPONENT_DISPLAY, 0x0000),  // (0x00050000) No error                     
01283     CMP_ERROR_SET_SCROLL_MODE              =STATUS_CODE(COMPONENT_DISPLAY, 0x0001),  // (0x00050001) Error with SetScrollMode     
01284     CMP_ERROR_SET_ORIENTATION              =STATUS_CODE(COMPONENT_DISPLAY, 0x0002),  // (0x00050002) Error with SetOrientation    
01285     CMP_ERROR_GET_ORIENTATION              =STATUS_CODE(COMPONENT_DISPLAY, 0x0003),  // (0x00050003) Error with GetOrientation    
01286     CMP_ERROR_SET_VIEWPORT_ORIGIN          =STATUS_CODE(COMPONENT_DISPLAY, 0x0004),  // (0x00050004) Error with SetViewportOrigin 
01287     CMP_ERROR_GET_ORIENTATION_TIMEOUT      =STATUS_CODE(COMPONENT_DISPLAY, 0x0005),  // (0x00050005) Timeout with GetOrientation  
01288     CMP_ERROR_GET_SCROLL_MODE              =STATUS_CODE(COMPONENT_DISPLAY, 0x0006),  // (0x00050006) Error with GetScrollMode     
01289     CMP_ERROR_GET_SCROLL_MODE_TIMEOUT      =STATUS_CODE(COMPONENT_DISPLAY, 0x0007),  // (0x00050007) Timeout with GetScrollMode   
01290     CMP_ERROR_GET_VIEWPORT_ORIGIN          =STATUS_CODE(COMPONENT_DISPLAY, 0x0008),  // (0x00050008) Error with GetViewportOrigin 
01291     CMP_ERROR_GET_VIEWPORT_ORIGIN_TIMEOUT  =STATUS_CODE(COMPONENT_DISPLAY, 0x0009),  // (0x00050009) Timeout with GetViewportOrigin
01292     CMP_ERROR_GET_DISPLAY_SETTINGS         =STATUS_CODE(COMPONENT_DISPLAY, 0x000A),  // (0x0005000A) Error with GetDisplaySettings
01293     CMP_ERROR_GET_DISPLAY_SETTINGS_TIMEOUT =STATUS_CODE(COMPONENT_DISPLAY, 0x000B),  // (0x0005000B) Timeout with GetDisplaySettings
01294     CMP_ERROR_GET_VIEWPORT                 =STATUS_CODE(COMPONENT_DISPLAY, 0x000C),  // (0x0005000C) Error with GetViewport       
01295     CMP_ERROR_GET_VIEWPORT_TIMEOUT         =STATUS_CODE(COMPONENT_DISPLAY, 0x000D),  // (0x0005000D) Timeout with GetViewport     
01296     CMP_ERROR_SET_VIEWPORT                 =STATUS_CODE(COMPONENT_DISPLAY, 0x000E),  // (0x0005000E) Error with SetViewport       
01297     CMP_ERROR_SET_ORIENTATION_SUPPORTED         =STATUS_CODE(COMPONENT_DISPLAY, 0x000F),  // (0x0005000F) Error with SetOrientationSupported
01298     CMP_ERROR_GET_ORIENTATION_SUPPORTED         =STATUS_CODE(COMPONENT_DISPLAY, 0x0010),  // (0x00050010) Error with GetOrientationSupported
01299     CMP_ERROR_GET_ORIENTATION_SUPPORTED_TIMEOUT =STATUS_CODE(COMPONENT_DISPLAY, 0x0011),  // (0x00050011) Error GetOrientationSupported timeout
01300     CMP_ERROR_VIEWPORT_ORIGIN_LOCKED            =STATUS_CODE(COMPONENT_DISPLAY, 0x0012),  // (0x00050012) The viewport origin is locked and cannot be changed due to DRAG scroll mode
01301     CMP_ERROR_VIEWPORT_LOCKED                   =STATUS_CODE(COMPONENT_DISPLAY, 0x0013),  // (0x00050013) The viewport is locked and cannot be changed due to DRAG scroll mode
01302 
01303     // Keyboard
01304     CMP_KEYBOARD_NO_ERROR                  =STATUS_CODE(COMPONENT_KEYBOARD, 0x0000),  // (0x00070000) No error                    
01305     CMP_ERROR_SHOWING_KEYBOARD             =STATUS_CODE(COMPONENT_KEYBOARD, 0x0001),  // (0x00070001) Error showing keyboard      
01306     CMP_ERROR_HIDING_KEYBOARD              =STATUS_CODE(COMPONENT_KEYBOARD, 0x0002),  // (0x00070002) Error hiding keyboard       
01307     CMP_ERROR_GET_KEYBOARD_STATE           =STATUS_CODE(COMPONENT_KEYBOARD, 0x0003),  // (0x00070003) Error GetKeyboardState      
01308     CMP_ERROR_GET_KEYBOARD_STATE_TIMEOUT   =STATUS_CODE(COMPONENT_KEYBOARD, 0x0004),  // (0x00070004) Error GetKeyboardState timeout
01309 
01310     //SMS
01311     CMP_SMS_NO_ERROR                       =STATUS_CODE(COMPONENT_MESSAGE, 0x0000),  // (0x00080000) No error                     
01312     CMP_ERROR_SEND_SMS                     =STATUS_CODE(COMPONENT_MESSAGE, 0x0001),  // (0x00080001) Error with SendSMS           
01313     CMP_ERROR_ALREADY_SENDING_SMS          =STATUS_CODE(COMPONENT_MESSAGE, 0x0002),  // (0x00080002) SMS app is already sending sms
01314 
01315     //Phone
01316     CMP_PHONE_NO_ERROR                     =STATUS_CODE(COMPONENT_PHONE, 0x0000),  // (0x00090000) No error                       
01317     CMP_ERROR_START_PHONE_CALL             =STATUS_CODE(COMPONENT_PHONE, 0x0001),  // (0x00090001) Error with StartPhoneCall      
01318     CMP_ERROR_INVALID_PHONE_NUMBER         =STATUS_CODE(COMPONENT_PHONE, 0x0002),  // (0x00090002) Invalid phone number           
01319     CMP_ERROR_PHONE_NUMBER_TOO_LONG        =STATUS_CODE(COMPONENT_PHONE, 0x0003),  // (0x00090003) Phone number too long          
01320     CMP_ERROR_ALREADY_STARTING_CALL        =STATUS_CODE(COMPONENT_PHONE, 0x0004),  // (0x00090004) Phone app is already making a call
01321 
01322     //Picker
01323     CMP_PICKER_NO_ERROR                    =STATUS_CODE(COMPONENT_PICKER, 0x0000),  // (0x000A0000) No error                      
01324     CMP_ERROR_SHOW_PICKER_CONTROL          =STATUS_CODE(COMPONENT_PICKER, 0x0001),  // (0x000A0001) Error ShowPicker              
01325     CMP_ERROR_HIDE_PICKER_CONTROL          =STATUS_CODE(COMPONENT_PICKER, 0x0002),  // (0x000A0002) Error HidePicker              
01326     CMP_ERROR_GET_PICKER_STATE             =STATUS_CODE(COMPONENT_PICKER, 0x0003),  // (0x000A0003) Error GetPickerState          
01327     CMP_ERROR_GET_PICKER_STATE_TIMEOUT     =STATUS_CODE(COMPONENT_PICKER, 0x0004),  // (0x000A0004) Timeout GetPickerState        
01328     CMP_ERROR_PICKER_TITLE_TOO_LONG        =STATUS_CODE(COMPONENT_PICKER, 0x0005),  // (0x000A0005) Picker title too long         
01329     CMP_ERROR_PICKER_LIST_TOO_BIG          =STATUS_CODE(COMPONENT_PICKER, 0x0006),  // (0x000A0006) Picker list too long          
01330 
01331     //Event
01332     CMP_EVENT_NO_ERROR                      =STATUS_CODE(COMPONENT_EVENT, 0x0000),  // (0x000C0000) No error                      
01333     CMP_ERROR_EVENT_UNKNOWN_EVENT_ID        =STATUS_CODE(COMPONENT_EVENT, 0x0001),  // (0x000C0001) Unknown event Id              
01334     CMP_ERROR_EVENT_HOOKING_FAILURE         =STATUS_CODE(COMPONENT_EVENT, 0x0002),  // (0x000C0002) Error hooking event           
01335 
01336     //Channel
01337     CMP_CHANNEL_NO_ERROR                   =STATUS_CODE(COMPONENT_CHANNEL, 0x0000),  // (0x000D0000) No error                     
01338     CMP_ERROR_OPEN_CHANNEL                 =STATUS_CODE(COMPONENT_CHANNEL, 0x0001),  // (0x000D0001) Error opening channel        
01339     CMP_ERROR_BIND_FAILED                  =STATUS_CODE(COMPONENT_CHANNEL, 0x0002),  // (0x000D0002) Bind failed                  
01340     CMP_ERROR_NOT_BOUND                    =STATUS_CODE(COMPONENT_CHANNEL, 0x0003),  // (0x000D0003) Not bound                    
01341     CMP_ERROR_UNBIND_FAILED                =STATUS_CODE(COMPONENT_CHANNEL, 0x0005),  // (0x000D0005) Unbind failed                
01342     CMP_ERROR_BIND_TIMEOUT                 =STATUS_CODE(COMPONENT_CHANNEL, 0x0006),  // (0x000D0006) Bind timeout                 
01343 
01344     //Notification
01345     CMP_NOTIFY_NO_ERROR                     =STATUS_CODE(COMPONENT_NOTIFY, 0x0000),  // (0x000E0000) No error                     
01346     CMP_ERROR_NOTIFY_TEXT_TOO_LONG          =STATUS_CODE(COMPONENT_NOTIFY, 0x0001),  // (0x000E0001) Notify text too long         
01347     CMP_ERROR_NOTIFY_USER                   =STATUS_CODE(COMPONENT_NOTIFY, 0x0002),  // (0x000E0002) Error with NotifyUser        
01348 
01349     //Session
01350     CMP_SESSION_NO_ERROR                   =STATUS_CODE(COMPONENT_SESSION, 0x0000),  // (0x000F0000) No error                     
01351     CMP_ERROR_NO_SESSION                   =STATUS_CODE(COMPONENT_SESSION, 0x0001),  // (0x000F0001) No session                   
01352     CMP_ERROR_SESSION_ALREADY_OPEN         =STATUS_CODE(COMPONENT_SESSION, 0x0002),  // (0x000F0002) Session already open         
01353     CMP_ERROR_CREATING_SESSION             =STATUS_CODE(COMPONENT_SESSION, 0x0003),  // (0x000F0003) Error creating session       
01354     CMP_ERROR_SESSION_OPTION_INVALID       =STATUS_CODE(COMPONENT_SESSION, 0x0004),  // (0x000F0004) Session option invalid       
01355     CMP_ERROR_REGISTER_CMP_PROCESS         =STATUS_CODE(COMPONENT_SESSION, 0x0005),  // (0x000F0005) Error register process       
01356     CMP_ERROR_UNREGISTER_CMP_PROCESS       =STATUS_CODE(COMPONENT_SESSION, 0x0006),  // (0x000F0006) Error unregister process     
01357 
01358     //Capabilities
01359     CMP_CAPABILITIES_NO_ERROR              =STATUS_CODE(COMPONENT_CAPS, 0x0000),  //  (0x00100000) Capabilities no error           
01360     CMP_ERROR_CAPABILITY_NOT_SUPPORTED     =STATUS_CODE(COMPONENT_CAPS, 0x0001),  //  (0x00100001) Capability not supported        
01361     CMP_ERROR_NO_CAPABILITIES              =STATUS_CODE(COMPONENT_CAPS, 0x0002),  //  (0x00100002) No capabilities                 
01362     CMP_ERROR_CAPABILITY_VALUE_NOT_FOUND   =STATUS_CODE(COMPONENT_CAPS, 0x0003),  //  (0x00100003) Capability value not found      
01363     CMP_ERROR_CAPABILITY_NOT_FOUND         =STATUS_CODE(COMPONENT_CAPS, 0x0004),  //  (0x00100004) Capability not found            
01364     CMP_ERROR_CAPABILITY_TYPE_MISMATCH     =STATUS_CODE(COMPONENT_CAPS, 0x0005),  //  (0x00100005) Capability type mismatch        
01365     CMP_ERROR_CAPABILITY_SIZE_MISMATCH     =STATUS_CODE(COMPONENT_CAPS, 0x0006),  //  (0x00100006) Capability size mismatch        
01366     CMP_ERROR_CAPABILITY_INVALID_VALUE_TYPE=STATUS_CODE(COMPONENT_CAPS, 0x0007),  //  (0x00100007) Invalid capability value type   
01367     CMP_ERROR_CAPABILITY_VALUE_OVERFLOW    =STATUS_CODE(COMPONENT_CAPS, 0x0008),  //  (0x00100008) Capability value overflow       
01368 
01369     // Controls
01370     CMP_CONTROLS_NO_ERROR                  =STATUS_CODE(COMPONENT_CONTROLS, 0x0000),  // (0x00110000) No error                     
01371     CMP_ERROR_ENABLE_OR_DISABLE_CONTROLS   =STATUS_CODE(COMPONENT_CONTROLS, 0x0001),  // (0x00110001) Error enabling/disabling control 
01372     CMP_ERROR_GET_CONTROLS_FLAGS_TIMEOUT   =STATUS_CODE(COMPONENT_CONTROLS, 0x0002),  // (0x00110002) Error get controlsflags timeout
01373     CMP_ERROR_GET_CONTROLS_FLAGS           =STATUS_CODE(COMPONENT_CONTROLS, 0x0003),  // (0x00110003) Error getting controlsflags  
01374 
01375     //GVCH
01376     CMP_GVCH_NO_ERROR                       =STATUS_CODE(COMPONENT_GVCH, 0x0000),  // (0x00120000) No error                       
01377     CMP_ERROR_GVCH_IO_DATA_OUT_OF_BOUNDS    =STATUS_CODE(COMPONENT_GVCH, 0x0001),  // (0x00120001) Out of bounds                  
01378     CMP_ERROR_GVCH_IO_DATA_STRING_TOO_BIG   =STATUS_CODE(COMPONENT_GVCH, 0x0002),  // (0x00120002) String too big                 
01379     CMP_ERROR_GVCH_IO_DATA_STRING_INVALID   =STATUS_CODE(COMPONENT_GVCH, 0x0003),  // (0x00120003) String invalid                 
01380     CMP_ERROR_GVCH_IO_DATA_DATA_TOO_BIG     =STATUS_CODE(COMPONENT_GVCH, 0x0004),  // (0x00120004) Too big                        
01381     CMP_ERROR_GVCH_IO_DATA_HEADER_TOO_SMALL =STATUS_CODE(COMPONENT_GVCH, 0x0005),  // (0x00120005) Header too small               
01382     CMP_ERROR_GVCH_INVALID_STATE_FOR_CALL   =STATUS_CODE(COMPONENT_GVCH, 0x0006),  // (0x00120006) Invalid state                  
01383     CMP_ERROR_GVCH_INVALID_VC_NAME          =STATUS_CODE(COMPONENT_GVCH, 0x0007),  // (0x00120007) Invalid virtual channel name   
01384     CMP_ERROR_GVCH_NOT_CONNECTED_STATE      =STATUS_CODE(COMPONENT_GVCH, 0x0008),  // (0x00120008) Not connected                  
01385     CMP_ERROR_GVCH_INVALID_SESSION          =STATUS_CODE(COMPONENT_GVCH, 0x0009),  // (0x00120009) Invalid session                
01386     CMP_ERROR_GVCH_INVALID_VC_MGR           =STATUS_CODE(COMPONENT_GVCH, 0x000A),  // (0x0012000A) Invalid virtual channel manager
01387 
01388     //VDO
01389     CMP_VDO_NO_ERROR                        =STATUS_CODE(COMPONENT_VDO, 0x0000),    // (0x00130000) No error
01390     CMP_ERROR_VDO_CONTEXT_SET               =STATUS_CODE(COMPONENT_VDO, 0x0001),    // (0x00130001) Error setting the context for a process
01391     CMP_ERROR_VDO_CONTEXT_ACTIVATE          =STATUS_CODE(COMPONENT_VDO, 0x0002),    // (0x00130002) Error activating the context for a process
01392 
01393     //Capture
01394     CMP_CAPTURE_NO_ERROR                    =STATUS_CODE(COMPONENT_CAPTURE, 0x0000), // (0x00140000) No error
01395     CMP_ERROR_CAPTURE_PICTURE               =STATUS_CODE(COMPONENT_CAPTURE, 0x0001), // (0x00140001) Error capturing picture
01396     CMP_ERROR_CAPTURE_VIDEO                 =STATUS_CODE(COMPONENT_CAPTURE, 0x0002), // (0x00140002) Error capturing video
01397     CMP_ERROR_CAPTURE_AUDIO                 =STATUS_CODE(COMPONENT_CAPTURE, 0x0003), // (0x00140003) Error capturing audio
01398     CMP_ERROR_CAPTURE_OPTIONS_TOO_LONG      =STATUS_CODE(COMPONENT_CAPTURE, 0x0004), // (0x00140004) Error capture text is too long 
01399     CMP_ERROR_CAPTURE_REMOVE                =STATUS_CODE(COMPONENT_CAPTURE, 0x0005), // (0x00140005) Error unable to remove captured data
01400     CMP_ERROR_CAPTURE_CANCEL                =STATUS_CODE(COMPONENT_CAPTURE, 0x0006), // (0x00140006) User cancelled the capture operation
01401     CMP_ERROR_AUDIO_RECORDING_DISABLED      =STATUS_CODE(COMPONENT_CAPTURE, 0x0007), // (0x00140007) Audio recording has been disabled in the receiver settings
01402     CMP_ERROR_ALREADY_CAPTURING             =STATUS_CODE(COMPONENT_CAPTURE, 0x0008), // (0x00140008) Capture request is already being processed
01403 
01404         //Emulator
01405         CMP_ERROR_EMULATOR_SIMULATED_FAILURE    =STATUS_CODE(COMPONENT_EMULATOR, 0x0001), // (0x00150001) Emulator failed because API success was disabled.
01406         CMP_ERROR_EMULATOR_PIPE_NOT_FOUND       =STATUS_CODE(COMPONENT_EMULATOR, 0x0002), // (0x00150002) Failed to connect to emulator.
01407         CMP_ERROR_EMULATOR_PIPE_BROKEN          =STATUS_CODE(COMPONENT_EMULATOR, 0x0003), // (0x00150003) Pipe disconnect or failure.
01408         CMP_ERROR_EMULATOR_AUTO_LAUNCH          =STATUS_CODE(COMPONENT_EMULATOR, 0x0004), // (0x00150004) Unable to launch emulator.
01409 };
01410 
01437 #ifdef CMPCOM
01438 [export]
01439 #endif
01440 enum CMP_DEV_STRING_PROP_ID
01441 {
01442     // strings (0x0000 is reserved)
01443     CMP_DEVICE_STRING_PROP_ID_FIRST     = 0x0001,   // first string id in list        
01444     CMP_DEVICE_MANUFACTURER             = 0x0001,   // Mobile device manufacturer name
01445     CMP_DEVICE_MODEL                    = 0x0002,   // Mobile device model            
01446     CMP_DEVICE_SERIAL_NUMBER            = 0x0003,   // Mobile device serial number    
01447     CMP_DEVICE_GIVEN_NAME               = 0x0004,   // Given device name              
01448     CMP_DEVICE_WIFI_MAC_ADDRESS         = 0x0005,   // WiFi network MAC address       
01449     CMP_DEVICE_BLUETOOTH_MAC_ADDRESS    = 0x0006,   // Bluetooth network MAC address  
01450     CMP_DEVICE_STRING_PROP_ID_LAST      = 0x0006    // last string property id        
01451 };
01452 
01551 #ifdef CMPCOM
01552 [export]
01553 #endif
01554 enum CMP_DEV_BOOL_PROP_ID
01555 {
01556     // booleans (0x1000 is reserved)
01557     CMP_DEVICE_BOOL_PROP_ID_FIRST       = 0x1001,   // marker for start of list 
01558     CMP_DEVICE_3G                       = 0x1001,   // Supports 3G network
01559     CMP_DEVICE_4G                       = 0x1002,   // Supports 4G network
01560     CMP_DEVICE_ACCELEROMETER            = 0x1003,   // Supports accelerometer 
01561     CMP_DEVICE_AUDIO_OUTPUT             = 0x1004,   // Audio output       
01562     CMP_DEVICE_BATTERY                  = 0x1005,   // Battery present    
01563     CMP_DEVICE_BLUETOOTH                = 0x1006,   // Bluetooth support  
01564     CMP_DEVICE_CAMERA                   = 0x1007,   // Camera             
01565     CMP_DEVICE_CAMERA_BACK              = 0x1008,   // Camera on back     
01566     CMP_DEVICE_CAMERA_FRONT             = 0x1009,   // Camera in front    
01567     CMP_DEVICE_COMPASS                  = 0x100A,   // Compass            
01568     CMP_DEVICE_COMPONENT_VIDEO          = 0x100B,   // Component video out
01569     CMP_DEVICE_COMPOSITE_VIDEO          = 0x100C,   // Composite video out
01570     CMP_DEVICE_GSM                      = 0x100D,   // Supports GSM network
01571     CMP_DEVICE_GPS                      = 0x100E,   // GPS                
01572     CMP_DEVICE_GYROSCOPE                = 0x100F,   // Gyroscope          
01573     CMP_DEVICE_HDMI_VIDEO               = 0x1010,   // HDMI out           
01574     CMP_DEVICE_MICRO_SD_CARD            = 0x1011,   // Micro SD card      
01575     CMP_DEVICE_MICROPHONE               = 0x1012,   // Microphone         
01576     CMP_DEVICE_MMS                      = 0x1013,   // MMS                
01577     CMP_DEVICE_MOUSE                    = 0x1014,   // Mouse              
01578     CMP_DEVICE_MULTI_TOUCH              = 0x1015,   // Multi-touch        
01579     CMP_DEVICE_ORIENTATION_CHANGES      = 0x1016,   // Orientation        
01580     CMP_DEVICE_PHYSICAL_KEYBOARD        = 0x1017,   // Physical keyboard  
01581     CMP_DEVICE_SENSOR_LIGHT             = 0x1018,   // Sensor light       
01582     CMP_DEVICE_SIM                      = 0x1019,   // SIM present        
01583     CMP_DEVICE_SMS                      = 0x101A,   // SMS                
01584     CMP_DEVICE_TOUCH_SCREEN             = 0x101B,   // Touch screen       
01585     CMP_DEVICE_TRACKBALL                = 0x101C,   // Trackball          
01586     CMP_DEVICE_WIFI                     = 0x101D,   // WiFi               
01587     CMP_DEVICE_WIRELESS_PHONE           = 0x101E,   // Wireless phone     
01588     CMP_DEVICE_BOOL_PROP_ID_LAST        = 0x101E    // end updated whenever more added 
01589 };
01590 
01604 #ifdef CMPCOM
01605 [export]
01606 #endif
01607 enum CMP_PICTURE_STATE
01608 {
01609     CMP_PICTURE_STATE_UNAVAILABLE           = 0,              // Picture not available
01610     CMP_PICTURE_STATE_READY                 = 1,              // Ready for retrieval
01611 };
01612 
01645 #ifdef CMPCOM
01646 [export]
01647 #endif
01648 enum CMP_SESSION_STATE
01649 {
01650     CMP_SESSION_STATE_INITIAL       = 0,              // Initial state
01651     CMP_SESSION_STATE_CONNECTED     = 1,              // Connected  
01652     CMP_SESSION_STATE_DISCONNECTED  = 2,              // Disconnected
01653     CMP_SESSION_STATE_LOCKED        = 3,              // Locked     
01654     CMP_SESSION_STATE_UNLOCKED      = 4,              // Unlocked   
01655     CMP_SESSION_STATE_LOGGED_ON     = 5,              // LoggedOn   
01656     CMP_SESSION_STATE_LOGGED_OFF    = 6,              // LoggedOff  
01657     CMP_SESSION_STATE_CONSOLE       = 7               // Console    
01658 };
01659 
01683 #ifdef CMPCOM
01684 [export]
01685 #endif
01686 enum CMP_CHANNEL_STATE
01687 {
01688     CMP_CHANNEL_STATE_INITIAL       = 0,              // Initial state       
01689     CMP_CHANNEL_STATE_CONNECTED     = 1,              // Connected           
01690     CMP_CHANNEL_STATE_DISCONNECTED  = 2,              // Disconnected        
01691     CMP_CHANNEL_STATE_BOUND         = 3,              // Channel is bound    
01692     CMP_CHANNEL_STATE_BIND_FAILURE  = 4               // Channel bind has failed
01693 };
01694 
01784 #ifdef CMPCOM
01785 [export]
01786 #endif 
01787 enum CMP_EVENT_ID
01788 {
01789     // events that are local
01790     CMP_EVENT_APP_FOREGROUND                    = 0x0001,   // @ref AppForeground
01791     CMP_EVENT_APP_BACKGROUND                    = 0x0002,   // @ref AppBackground
01792     CMP_EVENT_FOREGROUND_APP_CHANGED            = 0x0003,   // @ref ForegroundAppChanged
01793 
01794     // events that are received from Citrix receiver
01795     CMP_EVENT_BUTTON_PRESSED                    = 0xF800,   // @ref ButtonPressed              
01796     CMP_EVENT_DISPLAY_SETTINGS_CHANGED          = 0xF801,   // @ref DisplaySettingsChanged     
01797     CMP_EVENT_ORIENTATION_CHANGED               = 0xF802,   // @ref OrientationChanged         
01798     CMP_EVENT_SCROLL_MODE_CHANGED               = 0xF803,   // @ref ScrollModeChanged          
01799     CMP_EVENT_KEYBOARD_STATE_CHANGED            = 0xF804,   // @ref KeyboardStateChanged       
01800     CMP_EVENT_VIEWPORT_CHANGED                  = 0xF805,   // @ref ViewportChanged            
01801     CMP_EVENT_VIEWPORT_ORIGIN_CHANGED           = 0xF806,   // @ref ViewportOriginChanged      
01802     CMP_EVENT_BUTTON_TARGET_CHANGED             = 0xF807,   // @ref ButtonTargetChanged        
01803     CMP_EVENT_CONTROL_STATE_CHANGED             = 0xF808,   // @ref ControlStateChanged        
01804     CMP_EVENT_SMS_STARTED                       = 0xF809,   // @ref SMSStarted                 
01805     CMP_EVENT_PHONE_CALL_STARTED                = 0xF80B,   // @ref PhoneCallStarted           
01806     CMP_EVENT_PICKER_CONTROL_STATE_CHANGED      = 0xF80C,   // @ref PickerControlStateChanged  
01807     CMP_EVENT_CAMERA_PICTURE_TAKEN              = 0xF80D,   // @ref PictureTaken               
01808     CMP_EVENT_FILTER_CHANGED                    = 0xF810,   // @ref FilterChanged              
01809     CMP_EVENT_USER_NOTIFIED                     = 0xF811,   // @ref UserNotified               
01810     CMP_EVENT_CAMERA_PICTURE_REMOVED            = 0xF812,   // @ref PictureRemoved             
01811     CMP_EVENT_SESSION_STATE_CHANGED             = 0xF813,   // @ref SessionStateChanged        
01812     CMP_EVENT_CHANNEL_STATE_CHANGED             = 0xF814,   // @ref ChannelStateChanged        
01813     CMP_EVENT_PICTURE_CAPTURED                  = 0xF815,   // v2 @ref PictureCaptured
01814     CMP_EVENT_VIDEO_CAPTURED                    = 0xF816,   // v2 @ref VideoCaptured
01815     CMP_EVENT_AUDIO_CAPTURED                    = 0xF817,   // v2 @ref AudioCaptured
01816     CMP_EVENT_SUPPORTED_ORIENTATIONS_CHANGED    = 0xF818,   // v2 @ref SupportedOrientationsChanged
01817     CMP_EVENT_CAPTURE_MEDIA_REMOVED             = 0xF81A,   // v2 @ref CaptureMediaRemoved
01818 
01819     CMP_EVENT_ALL                               = 0xFFFF    // All events                 
01820 };
01821 
01845 #ifdef CMPCOM
01846 [export, library_block]
01847 #endif
01848 enum CMP_NOTIFICATION_FLAGS
01849 {
01850     CMP_NOTIFICATION_FLAG_LIGHT     =0x0001,   // Light notification  
01851     CMP_NOTIFICATION_FLAG_VIBRATE   =0x0002,   // Vibrate             
01852     CMP_NOTIFICATION_FLAG_AUDIO     =0x0004,   // Audio               
01853     CMP_NOTIFICATION_FLAG_TEXT      =0x0008,   // Text                
01854     CMP_NOTIFICATION_ALL_FLAGS      =0x000F    // All notification flags
01855 };
01856 
01857 
01872 #ifdef CMPCOM
01873 [export]
01874 #endif 
01875 enum CMP_IMAGE_FORMAT_SUPPORT
01876 {
01877     CMP_IMAGE_FORMAT_JPEG_SUPPORT = 0x0001,   // JPEG support
01878     CMP_IMAGE_FORMAT_PNG_SUPPORT  = 0x0002    // PNG support
01879 };
01880 
01881 
01895 #ifdef CMPCOM
01896 [export]
01897 #endif
01898 enum CMP_SESSION_OPTION
01899 {
01900     CMP_SESSION_OPTION_IGNORE_FOREGROUND_CHECK = 0x0001,    // Allow background apps to affect foreground apps
01901     CMP_SESSION_OPTION_DISABLE_CACHE           = 0x0002,    // Disable the caching of CMP data             
01902 };
01903 
01950 #ifdef CMPCOM
01951 [export]
01952 #endif
01953 enum CMP_DEVICE_OS
01954 {
01955     CMP_DEVICE_OS_UNKNOWN               =0x0000,   // Unknown operating system
01956     CMP_DEVICE_OS_ANDROID               =0x0001,   // Android              
01957     CMP_DEVICE_OS_IOS               =0x0002,   // Apple iOS            
01958     CMP_DEVICE_OS_BLACKBERRY        =0x0003,   // Blackberry           
01959     CMP_DEVICE_OS_WINDOWS_MOBILE    =0x0004,   // Windows Mobile       
01960     CMP_DEVICE_OS_WINDOWS_PHONE     =0x0005,   // Windows Phone        
01961     CMP_DEVICE_OS_WEBOS             =0x0006,   // WebOS                
01962     CMP_DEVICE_OS_QNX               =0x0007,   // Qnx                  
01963     CMP_DEVICE_OS_BADA              =0x0008,   // Bada                 
01964     CMP_DEVICE_OS_MEEGO             =0x0009,   // Meego                
01965     CMP_DEVICE_OS_WINDOWS               =0x000A,   // Windows              
01966     CMP_DEVICE_OS_OSX               =0x000B,   // Apple OSX            
01967     CMP_DEVICE_OS_LINUX             =0x000C,   // Linux                
01968 };
01969 
01995 #ifdef CMPCOM
01996 [export]
01997 #endif
01998 enum CMP_DEVICE_TYPE
01999 {
02000     CMP_DEVICE_TYPE_UNKNOWN        =0x0000,   // Unknown device type
02001     CMP_DEVICE_TYPE_MOBILE_PHONE   =0x0001,   // Mobile phone     
02002     CMP_DEVICE_TYPE_TABLET             =0x0002,   // Mobile tablet    
02003     CMP_DEVICE_TYPE_LAPTOP             =0x0003,   // Laptop           
02004     CMP_DEVICE_TYPE_PC             =0x0004,   // PC               
02005     CMP_DEVICE_TYPE_MAC            =0x0005,   // MAC              
02006 };
02007 
02008 
02028 #ifdef CMPCOM
02029 [export, library_block]
02030 #endif
02031 enum CMP_PICKER_CONTROL_STATE
02032 {
02033     CMP_PICKER_CONTROL_STATE_VISIBLE    = 0x0001,       // Picker control is visible and not selected yet
02034     CMP_PICKER_CONTROL_STATE_SELECTED   = 0x0002,       // Picker has been selected and index is valid
02035     CMP_PICKER_CONTROL_STATE_ABORTED    = 0x0004,       // Picker control has been aborted            
02036     CMP_PICKER_CONTROL_STATE_BACKGROUND = 0x0008        // Picker control is currently waiting for app to be in foreground
02037 };
02038 
02039 
02057 #ifdef CMPCOM
02058 [export, library_block]
02059 #endif
02060 enum CMP_VIEWPORT_VALID_FLAGS
02061 {
02062     CMP_VIEWPORT_VALID_FLAG_ZOOM_FACTOR        = 0x0001,              // Zoom factor is valid  
02063     CMP_VIEWPORT_VALID_FLAG_SERVER_VIEWPORT    = 0x0002,              // Server viewport is valid
02064     CMP_VIEWPORT_VALID_FLAG_CLIENT_VIEWPORT    = 0x0004               // client viewport is valid
02065 };
02066 
02072 #define CMP_VIEWPORT_VALID_FLAG_ALL              0x0007               // all flags combined
02073 
02144 #ifdef CMPCOM
02145 [export, library_block]
02146 #endif
02147 enum CMP_CAPTURE_QUALITY
02148 {
02149     CMP_CAPTURE_QUALITY_DEFAULT         = 0,               // Default quality (defined by device)
02150     CMP_CAPTURE_QUALITY_05              = 5,               // 5% quality
02151     CMP_CAPTURE_QUALITY_10              = 10,              // 10% quality
02152     CMP_CAPTURE_QUALITY_15              = 15,              // 15% quality
02153     CMP_CAPTURE_QUALITY_20              = 20,              // 20% quality
02154     CMP_CAPTURE_QUALITY_LOW             = 25,              // 25%  - Low quality
02155     CMP_CAPTURE_QUALITY_30              = 30,              // 30% quality
02156     CMP_CAPTURE_QUALITY_35              = 35,              // 35% quality
02157     CMP_CAPTURE_QUALITY_40              = 40,              // 40% quality
02158     CMP_CAPTURE_QUALITY_45              = 45,              // 45% quality
02159     CMP_CAPTURE_QUALITY_MEDIUM          = 50,              // 50%  - Medium quality
02160     CMP_CAPTURE_QUALITY_55              = 55,              // 55% quality
02161     CMP_CAPTURE_QUALITY_60              = 60,              // 60% quality
02162     CMP_CAPTURE_QUALITY_65              = 65,              // 65% quality
02163     CMP_CAPTURE_QUALITY_70              = 70,              // 70% quality
02164     CMP_CAPTURE_QUALITY_HIGH            = 75,              // 75%  - High quality
02165     CMP_CAPTURE_QUALITY_80              = 80,              // 80% quality
02166     CMP_CAPTURE_QUALITY_85              = 85,              // 85% quality
02167     CMP_CAPTURE_QUALITY_90              = 90,              // 90% quality
02168     CMP_CAPTURE_QUALITY_95              = 95,              // 95% quality
02169     CMP_CAPTURE_QUALITY_MAXIMUM         = 100              // 100%  - Maximum quality
02170 };
02171 
02188 #ifdef CMPCOM
02189 [export, library_block]
02190 #endif
02191 enum CMP_CAPTURE_CAMERA
02192 {
02193     CMP_CAPTURE_CAMERA_DEFAULT          = 0x0000,               // default camera selected (defined by device)
02194     CMP_CAPTURE_CAMERA_FRONT            = 0x0001,               // Front camera (facing user)
02195     CMP_CAPTURE_CAMERA_BACK             = 0x0002,               // Back camera (facing away from user)
02196 };
02197 
02229 #ifdef CMPCOM
02230 [export, library_block]
02231 #endif
02232 enum CMP_AUDIO_ENCODING
02233 {
02234     CMP_AUDIO_ENCODING_DEFAULT           = 0x0000,               // default audio encoding (defined by device)
02235     CMP_AUDIO_ENCODING_MPEG4             = 0x0001,               // Moving Picture Experts Group
02236     CMP_AUDIO_ENCODING_MP3               = 0x0002,               // Moving Picture Experts Group
02237     CMP_AUDIO_ENCODING_3GPP              = 0x0003,               // 3rd Generation Partnership Project
02238     CMP_AUDIO_ENCODING_WAV               = 0x0004,               // Microsoft Wave 
02239     CMP_AUDIO_ENCODING_AAC_ADTS          = 0x0005,               // Advanced Audio Coding - Audio Data Transport Stream 
02240     CMP_AUDIO_ENCODING_AMR_NB            = 0x0006,               // Adaptive Multi Rate - Narrow Band
02241     CMP_AUDIO_ENCODING_AMR_WB            = 0x0007,               // Adaptive Multi Rate - Wide Band
02242 };
02243 
02270 #ifdef CMPCOM
02271 [export, library_block]
02272 #endif
02273 enum CMP_THUMBNAIL_TYPE
02274 {
02275     CMP_THUMBNAIL_NONE                  = 0x0000,               // no thumbnail
02276     CMP_THUMBNAIL_DEFAULT               = 0x0001,               // default type (defined by device)
02277     CMP_THUMBNAIL_SMALL                 = 0x0002,               // small  ~100x100
02278     CMP_THUMBNAIL_MEDIUM                = 0x0003,               // medium ~300x300
02279     CMP_THUMBNAIL_LARGE                 = 0x0004,               // large  ~600x600
02280     CMP_THUMBNAIL_CUSTOM                = 0x0005                // custom size specified by parameters
02281 };
02282 
02305 #ifdef CMPCOM
02306 [export, library_block]
02307 #endif
02308 enum CMP_VIDEO_ENCODING
02309 {
02310     CMP_VIDEO_ENCODING_DEFAULT          = 0x0000,               // default video encoding (defined by device)
02311     CMP_VIDEO_ENCODING_MPEG4            = 0x0001,               // Moving Picture Experts Group
02312     CMP_VIDEO_ENCODING_H264             = 0x0002,               // H.264
02313     CMP_VIDEO_ENCODING_H263             = 0x0003,               // H.263
02314     CMP_VIDEO_ENCODING_3GPP             = 0x0004                // 3GPP
02315 };
02316 
02319 #ifdef CMPCOM
02320 [export, library_block]
02321 #endif
02322 enum CMP_VDO_CONTEXT_TYPE
02323 {
02324     CMP_VDO_CONTEXT_TYPE_DEFAULT         = 0x0000,
02325     CMP_VDO_CONTEXT_TYPE_KEYVALUE        = 0x0001,
02326 };
02327 
02328 #ifdef CMPCOM
02329 [export, library_block]
02330 #endif
02331 enum CMP_CAPTURE_FLAGS
02332 {
02333     CMP_CAPTURE_FLAG_USE_UNIQUE_ID      = 0x0001                 // use the unique Id that is passed in instead of generating one
02334 };
02335 
02338 typedef enum MRVC_METADATA_TYPE
02339 {
02340     MRVC_METADATA_TYPE_DESKTOP       = 0x0,
02341     MRVC_METADATA_TYPE_STARTMENU     = 0x1,
02342     MRVC_METADATA_TYPE_PATH          = 0x2,
02343     MRVC_METADATA_TYPE_DOCUMENTS     = 0x3
02344 };
02345 
02346 // C need to have a typedef to get the name to not have the enum prefix 
02348 #ifndef __cplusplus
02349 typedef enum CMP_BUTTON_ID              CMP_BUTTON_ID;
02350 typedef enum CMP_BUTTON_TARGET                  CMP_BUTTON_TARGET;
02351 typedef enum CMP_CHANNEL_STATE                  CMP_CHANNEL_STATE;
02352 typedef enum CMP_DEV_BOOL_PROP_ID       CMP_DEV_BOOL_PROP_ID;
02353 typedef enum CMP_DEV_STRING_PROP_ID             CMP_DEV_STRING_PROP_ID;
02354 typedef enum CMP_DEVICE_OS              CMP_DEVICE_OS;
02355 typedef enum CMP_DEVICE_TYPE            CMP_DEVICE_TYPE;
02356 typedef enum CMP_ERROR_ID                               CMP_ERROR_ID;
02357 typedef enum CMP_EVENT_ID                               CMP_EVENT_ID;
02358 typedef enum CMP_IMAGE_FORMAT           CMP_IMAGE_FORMAT;
02359 typedef enum CMP_IMAGE_FORMAT_SUPPORT   CMP_IMAGE_FORMAT_SUPPORT;
02360 typedef enum CMP_KEYBOARD_AUTOCAPS              CMP_KEYBOARD_AUTOCAPS;
02361 typedef enum CMP_KEYBOARD_FLAGS         CMP_KEYBOARD_FLAGS;
02362 typedef enum CMP_KEYBOARD_RETURNKEY     CMP_KEYBOARD_RETURNKEY;
02363 typedef enum CMP_KEYBOARD_TYPE              CMP_KEYBOARD_TYPE;
02364 typedef enum CMP_NOTIFICATION_FLAGS     CMP_NOTIFICATION_FLAGS;
02365 typedef enum CMP_ORIENTATION_FLAG       CMP_ORIENTATION_FLAG;
02366 typedef enum CMP_ORIENTATION_POSITION   CMP_ORIENTATION_POSITION;
02367 typedef enum CMP_PICKER_CONTROL_STATE   CMP_PICKER_CONTROL_STATE;
02368 typedef enum CMP_PICKER_SUPPORT_FLAGS   CMP_PICKER_SUPPORT_FLAGS;
02369 typedef enum CMP_PICTURE_STATE                  CMP_PICTURE_STATE;
02370 typedef enum CMP_SCROLL_MODE            CMP_SCROLL_MODE;
02371 typedef enum CMP_SESSION_OPTION         CMP_SESSION_OPTION;
02372 typedef enum CMP_SESSION_STATE              CMP_SESSION_STATE;
02373 typedef enum CMP_VIEWPORT_VALID_FLAGS   CMP_VIEWPORT_VALID_FLAGS;
02374 typedef enum CMP_CAPTURE_QUALITY        CMP_CAPTURE_QUALITY;
02375 typedef enum CMP_CAPTURE_CAMERA         CMP_CAPTURE_CAMERA;
02376 typedef enum CMP_AUDIO_ENCODING         CMP_AUDIO_ENCODING;
02377 typedef enum CMP_VIDEO_ENCODING         CMP_VIDEO_ENCODING;
02378 typedef enum CMP_THUMBNAIL_TYPE         CMP_THUMBNAIL_TYPE;
02379 typedef enum CMP_SUPPORTED_ORIENTATIONS CMP_SUPPORTED_ORIENTATIONS;
02380 typedef enum CMP_VDO_CONTEXT_TYPE       CMP_VDO_CONTEXT_TYPE;
02381 typedef enum MRVC_METADATA_TYPE         MRVC_METADATA_TYPE;
02382 #endif
02383 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Events Defines