web_plat/widget_registry_api/inc/WidgetRegistryConstants.h
branchRCL_3
changeset 48 79859ed3eea9
parent 36 c711bdda59f4
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    27 
    27 
    28 // Constants
    28 // Constants
    29 const TUid KWidgetRegistryServerUid = { 0x10282F06 };
    29 const TUid KWidgetRegistryServerUid = { 0x10282F06 };
    30 const TUid KUidWidgetUi = { 0x10282822 };
    30 const TUid KUidWidgetUi = { 0x10282822 };
    31 const TUid KUidWidgetLauncher = { 0x10282821 };
    31 const TUid KUidWidgetLauncher = { 0x10282821 };
    32 const TUid KUidWgtWidgetLauncher = { 0x200267DC };
       
    33 
    32 
    34 
    33 #define WIDGETPROPERTYLISTVERSION 3
    35 #define WIDGETPROPERTYLISTVERSION 4
       
    36 
       
    37 const TInt KWidgetPropertyListVersion32 = 1;
       
    38 const TInt KWidgetPropertyListVersion71 = 3;
       
    39 const TInt KWidgetPropertyListVersion71CWRT = 4;
       
    40 
       
    41 // Before changing these, consider that there will be widgets
    34 // Before changing these, consider that there will be widgets
    42 // installed on removable memory cards according to an allocation
    35 // installed on removable memory cards according to an allocation
    43 // scheme using these bounds.
    36 // scheme using these bounds.
    44 const TInt32 KWidgetUidLowerBound = 0x2000DAD2;
    37 const TInt32 KWidgetUidLowerBound = 0x2000DAD2;
    45 const TInt32 KWidgetUidUpperBound = 0x2000DEB9;
    38 const TInt32 KWidgetUidUpperBound = 0x2000DEB9;
    49 // separate range.  Eventually, removable memory is probably going to
    42 // separate range.  Eventually, removable memory is probably going to
    50 // have to use a reallocation scheme on insertion.
    43 // have to use a reallocation scheme on insertion.
    51 const TInt32 KWidgetUidInternalMemoryStart = KWidgetUidLowerBound;
    44 const TInt32 KWidgetUidInternalMemoryStart = KWidgetUidLowerBound;
    52 const TInt32 KWidgetUidExternalMemoryStart = (KWidgetUidLowerBound + KWidgetUidUpperBound + 1) / 2; // half way
    45 const TInt32 KWidgetUidExternalMemoryStart = (KWidgetUidLowerBound + KWidgetUidUpperBound + 1) / 2; // half way
    53 const TInt32 KWidgetUidExternalMemoryStop = KWidgetUidUpperBound;
    46 const TInt32 KWidgetUidExternalMemoryStop = KWidgetUidUpperBound;
    54 
       
    55 // Additions for separation of CWRT Widget UID space from WRT Widget UID space
       
    56 const TInt32 KWidgetUidWRTInternalMemoryStop = (KWidgetUidInternalMemoryStart + KWidgetUidExternalMemoryStart + 1) / 2;
       
    57 const TInt32 KWidgetUidCWRTInternalMemoryStart = KWidgetUidWRTInternalMemoryStop;
       
    58 const TInt32 KWidgetUidCWRTInternalMemoryStop = KWidgetUidExternalMemoryStart;
       
    59 const TInt32 KWidgetUidWRTExternalMemoryStop = (KWidgetUidExternalMemoryStart + KWidgetUidExternalMemoryStop + 1) / 2;
       
    60 const TInt32 KWidgetUidCWRTExternalMemoryStart = KWidgetUidWRTExternalMemoryStop;
       
    61 const TInt32 KWidgetUidCWRTExternalMemoryStop = KWidgetUidUpperBound + 1;
       
    62 
       
    63 
    47 
    64 const TInt KWidgetRegistryClientVersionMajor = 0;
    48 const TInt KWidgetRegistryClientVersionMajor = 0;
    65 const TInt KWidgetRegistryClientVersionMinor = 1;
    49 const TInt KWidgetRegistryClientVersionMinor = 1;
    66 const TInt KWidgetRegistryClientVersionBuild = 1;
    50 const TInt KWidgetRegistryClientVersionBuild = 1;
    67 const TInt KWidgetRegistryServerAsynchronousSlotCount = 4;
    51 const TInt KWidgetRegistryServerAsynchronousSlotCount = 4;
    73 // Literal constants
    57 // Literal constants
    74 _LIT( KWidgetRegistryName, "!WidgetRegistry" ); // name to connect to
    58 _LIT( KWidgetRegistryName, "!WidgetRegistry" ); // name to connect to
    75 _LIT( KWidgetRegistryImage, "WidgetRegistry" ); // DLL/EXE name
    59 _LIT( KWidgetRegistryImage, "WidgetRegistry" ); // DLL/EXE name
    76 _LIT8( KWidgetMime, "application/x-nokia-widget");
    60 _LIT8( KWidgetMime, "application/x-nokia-widget");
    77 _LIT( KLauncherApp, "widgetlauncher.exe" );
    61 _LIT( KLauncherApp, "widgetlauncher.exe" );
    78 _LIT( KWgtLauncherApp, "wgtwidgetlauncher.exe" );
       
    79 
    62 
    80 
    63 
    81 // Enumerations
    64 // Enumerations
    82 enum TWidgetRegistryClientOpCodes
    65 enum TWidgetRegistryClientOpCodes
    83     {
    66     {
   140     EIconPath,                  // string; icon path only
   123     EIconPath,                  // string; icon path only
   141     EUrl,                       // string;
   124     EUrl,                       // string;
   142     EFileSize,                  // int
   125     EFileSize,                  // int
   143     EUid,                       // TUid
   126     EUid,                       // TUid
   144     ENokiaWidget,               // int 0 (not Nokia DTD) or 1 (Nokia DTD)
   127     ENokiaWidget,               // int 0 (not Nokia DTD) or 1 (Nokia DTD)
   145     // Do not add enums prior to this, if you are adding enums here 
   128     EMiniViewEnable,            //optional; int internally 0 0r 1
   146     // take into consideration the compatibility problems, i.e widgets working after firmware update.  
   129     EBlanketPermGranted,              //optional; int internally 0 0r 1
   147 
       
   148     EMiniViewEnable,            // optional; int internally 0 0r 1
       
   149     EBlanketPermGranted,        // optional; int internally 0 0r 1
       
   150     EPreInstalled,              // optional; int internally 0 or 1
   130     EPreInstalled,              // optional; int internally 0 or 1
   151     
       
   152     EProcessUid,                // int (UID of widget execution process)
       
   153     EMimeType,
       
   154 
   131 
   155     // end property list, begin special values
   132     // end property list, begin special values
   156     EWidgetPropertyIdCount,     // must be at end of properties
   133     EWidgetPropertyIdCount,     // must be at end of properties
   157     EWidgetPropertyIdInvalid = 1000    // must be after EWidgetPropertyIdCount
   134     EWidgetPropertyIdInvalid = 1000    // must be after EWidgetPropertyIdCount
   158     };
   135     };