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