idlehomescreen/widgetmanager/inc/wmconfiguration.h
branchRCL_3
changeset 11 ff572dfe6d86
parent 9 f966699dea19
child 18 d05a55b217df
equal deleted inserted replaced
9:f966699dea19 11:ff572dfe6d86
    50     
    50     
    51     /** 2nd phase constructor */
    51     /** 2nd phase constructor */
    52     void ConstructL();
    52     void ConstructL();
    53 
    53 
    54 public: // API
    54 public: // API
    55 
    55     
    56     /**
       
    57      * portal button methods. This - along with the parameter -
       
    58      * represents the action that the portal button is configured
       
    59      * to do when pressed. The portal button itself should contain
       
    60      * the execution code itself.
       
    61      */
       
    62     enum TMethod
       
    63         {
       
    64         ENone = 0, // no method
       
    65         EHttp, // open browser to a certain page
       
    66         EWidget, // open given widget with params
       
    67         EApplication // launch an application
       
    68         };
       
    69 
       
    70     /**
    56     /**
    71      * Number of portal buttons (1 or more)
    57      * Number of portal buttons (1 or more)
    72      */
    58      */
    73     TInt PortalButtonCount();
    59     TInt PortalButtonCount();
    74 
    60 
   105         
    91         
   106 private: // New functions
    92 private: // New functions
   107     
    93     
   108     void LoadConfigurationL();
    94     void LoadConfigurationL();
   109     TInt FindCorrectLanguageId();
    95     TInt FindCorrectLanguageId();
   110     HBufC* ReadParameterL( TInt aKey );
    96     HBufC* ReadDescParameterL( TInt aKey );
       
    97     void ReadIntParameter( TInt aKey, TInt32& aValue );
   111     HBufC* ReadLocalisedParameterL( TInt aOffset );
    98     HBufC* ReadLocalisedParameterL( TInt aOffset );
   112     void IndexConversion( TInt& aIndex );
    99     void IndexConversion( TInt& aIndex );
   113 
   100 
   114 private:
   101 private:
   115 
   102 
   138      * OVI store button icon
   125      * OVI store button icon
   139      */
   126      */
   140     HBufC*                  iOviButtonIcon;
   127     HBufC*                  iOviButtonIcon;
   141     
   128     
   142     /**
   129     /**
   143      * OVI store button browser Url
       
   144      * (browser is used if OVI client is not working)
       
   145      */
       
   146     HBufC*                  iOviButtonUrl;
       
   147     
       
   148     /**
       
   149      * OVI store button widget client param
   130      * OVI store button widget client param
   150      */
   131      */
   151     HBufC*                  iOviStoreClientParam;
   132     HBufC*                  iOviStoreClientParam;
   152     
   133     
   153     /**
   134     /**
   154      * OVI store button widget bundle ID
   135      * OVI store laucher ui
   155      */
   136      */
   156     HBufC*                  iOviStoreBundleId;
   137     TUid                      iOviStoreUid;
   157     
   138     
   158     /**
   139     /**
   159      * OPERATOR button text
   140      * OPERATOR button text
   160      */
   141      */
   161     HBufC*                  iOperatorButtonTitle;
   142     HBufC*                  iOperatorButtonTitle;