imagehandlingutilities/thumbnailmanager/thumbagdaemon/inc/thumbagdaemon.h
branchRCL_3
changeset 7 2eb74cf6572e
parent 5 82749d516180
child 14 ad31f4183ddc
equal deleted inserted replaced
5:82749d516180 7:2eb74cf6572e
    37 NONSHARABLE_CLASS( CThumbAGDaemon ): public CServer2, 
    37 NONSHARABLE_CLASS( CThumbAGDaemon ): public CServer2, 
    38                                      public MMdESessionObserver,
    38                                      public MMdESessionObserver,
    39                                      public MMdEObjectObserver,
    39                                      public MMdEObjectObserver,
    40                                      public MTMShutdownObserver,
    40                                      public MTMShutdownObserver,
    41                                      public MMdEObjectPresentObserver
    41                                      public MMdEObjectPresentObserver
       
    42 #ifdef MDS_URI_OBSERVER
       
    43                                      ,public MMdEObjectObserverWithUri
       
    44 #endif
    42                                      
    45                                      
    43     {
    46     {
    44 public:
    47 public:
    45 
    48 
    46     /**
    49     /**
    95     // from MMdEObjectObserver
    98     // from MMdEObjectObserver
    96     void HandleObjectNotification(CMdESession& aSession, 
    99     void HandleObjectNotification(CMdESession& aSession, 
    97                                   TObserverNotificationType aType,
   100                                   TObserverNotificationType aType,
    98                                   const RArray<TItemId>& aObjectIdArray);
   101                                   const RArray<TItemId>& aObjectIdArray);
    99     
   102     
       
   103 #ifdef MDS_URI_OBSERVER
       
   104     void HandleUriObjectNotification(CMdESession& aSession, 
       
   105                             TObserverNotificationType aType,
       
   106                             const RArray<TItemId>& aObjectIdArray,
       
   107                             const RPointerArray<HBufC>& aObjectUriArray);
       
   108 #endif
       
   109     
   100     void HandleObjectPresentNotification(CMdESession& aSession, 
   110     void HandleObjectPresentNotification(CMdESession& aSession, 
   101                 TBool aPresent, const RArray<TItemId>& aObjectIdArray);
   111                 TBool aPresent, const RArray<TItemId>& aObjectIdArray);
   102     
   112     
   103     // from MTMShutdownObserver
   113     // from MTMShutdownObserver
   104     void ShutdownNotification();
   114     void ShutdownNotification();
   140      * Initilization helper
   150      * Initilization helper
   141      *
   151      *
   142      * @since S60 v5.2
   152      * @since S60 v5.2
   143      */
   153      */
   144     void InitializeL();
   154     void InitializeL();
       
   155     
       
   156     /**
       
   157      * Callback for reconnect timer
       
   158      *
       
   159      * @since S60 v5.0
       
   160      */
       
   161     static TInt ReconnectCallBack(TAny* aAny);
   145 
   162 
   146 private:
   163 private:
   147 	
   164 	
   148     // own
   165     // own
   149     CTMShutdownObserver* iShutdownObserver;
   166     CTMShutdownObserver* iShutdownObserver;
   151     CMdESession* iMdESession;
   168     CMdESession* iMdESession;
   152     CThumbAGProcessor* iProcessor;
   169     CThumbAGProcessor* iProcessor;
   153     
   170     
   154     TBool iShutdown;
   171     TBool iShutdown;
   155  
   172  
       
   173     // reconnect timer
       
   174     CPeriodic* iReconnect;
       
   175     
   156 #ifdef _DEBUG
   176 #ifdef _DEBUG
   157     TUint32 iAddCounter;
   177     TUint32 iAddCounter;
   158     TUint32 iModCounter;
   178     TUint32 iModCounter;
   159     TUint32 iDelCounter;
   179     TUint32 iDelCounter;
   160 #endif
   180 #endif