iaupdate/IAD/backgroundchecker/inc/iaupdatebgsoftnotification.h
changeset 53 ae54820ef82c
parent 29 26b6f0522fd8
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
    59         
    59         
    60     public: // New functions
    60     public: // New functions
    61         
    61         
    62          /**
    62          /**
    63           * Shows notification and  indicator. 
    63           * Shows notification and  indicator. 
    64           *
       
    65           * @param aNrOfUpdates number of updates
       
    66           */
    64           */
    67          void ShowNotificationL();
    65          void ShowNotificationL();
    68          
    66          
    69          /**
    67          /**
    70           * Shows indicator. 
    68           * Shows indicator. 
    71           *
       
    72           * @param aMode indicator mode (EFirstTimeMode / ENormalMode)
       
    73           */
    69           */
    74          void ShowIndicatorL();
    70          void ShowIndicatorL();
    75          
    71          
    76          /**
    72          /**
    77           * Removes indicator. 
    73           * Removes indicator. 
    78           *
       
    79           * @param aNrOfUpdates number of updates
       
    80           */
    74           */
    81          void RemoveIndicatorL();
    75          void RemoveIndicatorL();
    82 
    76 
    83         /**
    77         /**
    84          * Set a text for a soft notification.
    78          * Set a text for a soft notification.
    85          *
    79          *
    86          * @param aTitle title for soft notification
    80          * @param aTitle title for soft notification
    87          * @param aText  text for soft notification
    81          * @param aText  text for soft notification
    88          */
    82          */
    89         void SetTextL( const TDesC& aTitle, const TDesC& aText ); 
    83         void SetTextL( const TDesC& aTitle, const TDesC& aText ); 
    90 
       
    91         /**
       
    92         * Set an image path for a soft notification.
       
    93         *
       
    94         * @param aImage image path for soft notification
       
    95         */
       
    96         void SetImagePathL( const TDesC& aImage );
       
    97         
    84         
    98         /**
    85         /**
    99         * Set number of updates a soft notification.
    86         * Set number of updates a soft notification.
   100         *
    87         *
   101         * @param aNrOfUpdates 0 - first time, >< 0 normal case
    88         * @param aNrOfUpdates 0 - first time, >< 0 normal case
   150         void SetIndicatorEnabled(TBool aEnabled);
   137         void SetIndicatorEnabled(TBool aEnabled);
   151         
   138         
   152         /**
   139         /**
   153          * Get indicator enablation state
   140          * Get indicator enablation state
   154          *
   141          *
   155          * @return aEnabled ETrue-enabled, EFalse-disabled
   142          * @return ETrue-enabled, EFalse-disabled
   156          */ 
   143          */ 
   157         TBool IsIndicatorEnabled();
   144         TBool IsIndicatorEnabled();
   158         
   145         
   159         /**
       
   160          * Set number of updates
       
   161          *
       
   162          * @param aNrOfUpdates number of updates 
       
   163          */ 
       
   164         // void SetNrOfUpdates( const int aNrOfUpdates );
       
   165         
       
   166         /**
       
   167          * Get number of updates
       
   168          *
       
   169          * @return  number of updates 
       
   170          */ 
       
   171         int GetNrOfUpdates();
   146         int GetNrOfUpdates();
   172         
   147         
   173     private:  // Data
   148     private:  // Data
   174         // Note title
   149         // Note title
   175         HBufC* iTitle; 
   150         HBufC* iTitle; 
       
   151         
   176         // Note text
   152         // Note text
   177         HBufC* iText; 
   153         HBufC* iText; 
   178         /// Image data byte array
   154         
   179         HBufC8* iImageData;
       
   180         // Notification callback
   155         // Notification callback
   181         MIAUpdateBGSoftNotificationCallBack* iCallback;
   156         MIAUpdateBGSoftNotificationCallBack* iCallback;
   182         // Image path
   157         
   183         HBufC* iImagePath;
       
   184         // Number of updates
   158         // Number of updates
   185         int iNrOfUpdates;
   159         int iNrOfUpdates;
       
   160         
   186         // Indictor activation state
   161         // Indictor activation state
   187         TBool iActivateIndicator;
   162         TBool iActivateIndicator;
       
   163         
   188         //Notification dialog
   164         //Notification dialog
   189         CHbDeviceNotificationDialogSymbian* iNotificationDialog;
   165         CHbDeviceNotificationDialogSymbian* iNotificationDialog;
   190 
   166 
   191     };
   167     };
   192 
   168