web_plat/widget_registry_api/inc/WidgetRegistryConstants.h
branchRCL_3
changeset 35 1f3c3f2f5b0a
parent 25 0ed94ceaa377
child 36 c711bdda59f4
equal deleted inserted replaced
34:220a17280356 35:1f3c3f2f5b0a
    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 
    32 
    33 #define WIDGETPROPERTYLISTVERSION 3
    33 #define WIDGETPROPERTYLISTVERSION 4
       
    34 
       
    35 const TInt KWidgetPropertyListVersion32 = 1;
       
    36 const TInt KWidgetPropertyListVersion71 = 3;
       
    37 const TInt KWidgetPropertyListVersion71CWRT = 4;
       
    38 
    34 // Before changing these, consider that there will be widgets
    39 // Before changing these, consider that there will be widgets
    35 // installed on removable memory cards according to an allocation
    40 // installed on removable memory cards according to an allocation
    36 // scheme using these bounds.
    41 // scheme using these bounds.
    37 const TInt32 KWidgetUidLowerBound = 0x2000DAD2;
    42 const TInt32 KWidgetUidLowerBound = 0x2000DAD2;
    38 const TInt32 KWidgetUidUpperBound = 0x2000DEB9;
    43 const TInt32 KWidgetUidUpperBound = 0x2000DEB9;
    42 // separate range.  Eventually, removable memory is probably going to
    47 // separate range.  Eventually, removable memory is probably going to
    43 // have to use a reallocation scheme on insertion.
    48 // have to use a reallocation scheme on insertion.
    44 const TInt32 KWidgetUidInternalMemoryStart = KWidgetUidLowerBound;
    49 const TInt32 KWidgetUidInternalMemoryStart = KWidgetUidLowerBound;
    45 const TInt32 KWidgetUidExternalMemoryStart = (KWidgetUidLowerBound + KWidgetUidUpperBound + 1) / 2; // half way
    50 const TInt32 KWidgetUidExternalMemoryStart = (KWidgetUidLowerBound + KWidgetUidUpperBound + 1) / 2; // half way
    46 const TInt32 KWidgetUidExternalMemoryStop = KWidgetUidUpperBound;
    51 const TInt32 KWidgetUidExternalMemoryStop = KWidgetUidUpperBound;
       
    52 
       
    53 // Additions for separation of CWRT Widget UID space from WRT Widget UID space
       
    54 const TInt32 KWidgetUidWRTInternalMemoryStop = (KWidgetUidInternalMemoryStart + KWidgetUidExternalMemoryStart + 1) / 2;
       
    55 const TInt32 KWidgetUidCWRTInternalMemoryStart = KWidgetUidWRTInternalMemoryStop;
       
    56 const TInt32 KWidgetUidCWRTInternalMemoryStop = KWidgetUidExternalMemoryStart;
       
    57 const TInt32 KWidgetUidWRTExternalMemoryStop = (KWidgetUidExternalMemoryStart + KWidgetUidExternalMemoryStop + 1) / 2;
       
    58 const TInt32 KWidgetUidCWRTExternalMemoryStart = KWidgetUidWRTExternalMemoryStop;
       
    59 const TInt32 KWidgetUidCWRTExternalMemoryStop = KWidgetUidUpperBound + 1;
       
    60 
    47 
    61 
    48 const TInt KWidgetRegistryClientVersionMajor = 0;
    62 const TInt KWidgetRegistryClientVersionMajor = 0;
    49 const TInt KWidgetRegistryClientVersionMinor = 1;
    63 const TInt KWidgetRegistryClientVersionMinor = 1;
    50 const TInt KWidgetRegistryClientVersionBuild = 1;
    64 const TInt KWidgetRegistryClientVersionBuild = 1;
    51 const TInt KWidgetRegistryServerAsynchronousSlotCount = 4;
    65 const TInt KWidgetRegistryServerAsynchronousSlotCount = 4;
   126     EUid,                       // TUid
   140     EUid,                       // TUid
   127     ENokiaWidget,               // int 0 (not Nokia DTD) or 1 (Nokia DTD)
   141     ENokiaWidget,               // int 0 (not Nokia DTD) or 1 (Nokia DTD)
   128     // Do not add enums prior to this, if you are adding enums here 
   142     // Do not add enums prior to this, if you are adding enums here 
   129     // take into consideration the compatibility problems, i.e widgets working after firmware update.  
   143     // take into consideration the compatibility problems, i.e widgets working after firmware update.  
   130 
   144 
   131     EMiniViewEnable,            //optional; int internally 0 0r 1
   145     EMiniViewEnable,            // optional; int internally 0 0r 1
   132     EBlanketPermGranted,              //optional; int internally 0 0r 1
   146     EBlanketPermGranted,        // optional; int internally 0 0r 1
   133     EPreInstalled,              // optional; int internally 0 or 1
   147     EPreInstalled,              // optional; int internally 0 or 1
       
   148     
       
   149     EProcessUid,                // int (UID of widget execution process)
       
   150     EMimeType,
   134 
   151 
   135     // end property list, begin special values
   152     // end property list, begin special values
   136     EWidgetPropertyIdCount,     // must be at end of properties
   153     EWidgetPropertyIdCount,     // must be at end of properties
   137     EWidgetPropertyIdInvalid = 1000    // must be after EWidgetPropertyIdCount
   154     EWidgetPropertyIdInvalid = 1000    // must be after EWidgetPropertyIdCount
   138     };
   155     };