imagehandlingutilities/thumbnailmanager/thumbagdaemon/inc/thumbagdaemon.h
changeset 14 2edacbf5d3f9
parent 0 2014ca87e772
child 22 a67f74060682
equal deleted inserted replaced
1:235a7fc86938 14:2edacbf5d3f9
    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();
   133      * Symbian 2nd phase constructor can leave.
   143      * Symbian 2nd phase constructor can leave.
   134      *
   144      *
   135      * @since S60 v5.0
   145      * @since S60 v5.0
   136      */
   146      */
   137     void ConstructL();
   147     void ConstructL();
       
   148     
       
   149 	 /**
       
   150      * Initilization helper
       
   151      *
       
   152      * @since S60 v5.2
       
   153      */
       
   154     void InitializeL();
       
   155     
       
   156     /**
       
   157      * Callback for reconnect timer
       
   158      *
       
   159      * @since S60 v5.0
       
   160      */
       
   161     static TInt ReconnectCallBack(TAny* aAny);
   138 
   162 
   139 private:
   163 private:
   140 	
   164 	
   141     // own
   165     // own
   142     CTMShutdownObserver* iShutdownObserver;
   166     CTMShutdownObserver* iShutdownObserver;
   144     CMdESession* iMdESession;
   168     CMdESession* iMdESession;
   145     CThumbAGProcessor* iProcessor;
   169     CThumbAGProcessor* iProcessor;
   146     
   170     
   147     TBool iShutdown;
   171     TBool iShutdown;
   148  
   172  
       
   173     // reconnect timer
       
   174     CPeriodic* iReconnect;
       
   175     
   149 #ifdef _DEBUG
   176 #ifdef _DEBUG
   150     TUint32 iAddCounter;
   177     TUint32 iAddCounter;
   151     TUint32 iModCounter;
   178     TUint32 iModCounter;
   152     TUint32 iDelCounter;
   179     TUint32 iDelCounter;
   153 #endif
   180 #endif