accessoryservices/accessoryserver/inc/Server/AccSrvConnectionController.h
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
   174 *  Connection Controller handles accessory connection related tasks.
   174 *  Connection Controller handles accessory connection related tasks.
   175 *
   175 *
   176 *  @lib AccServer.lib
   176 *  @lib AccServer.lib
   177 *  @since S60 3.1
   177 *  @since S60 3.1
   178 */
   178 */
   179 NONSHARABLE_CLASS( CAccSrvConnectionController ) : public MAccSrvConnectionControllerObserver
   179 NONSHARABLE_CLASS( CAccSrvConnectionController ) : public CActive,
       
   180                                                    public MAccSrvConnectionControllerObserver
   180     {
   181     {
   181     public  :// Constructors and destructor
   182     public  :// Constructors and destructor
   182 
   183 
   183         /**
   184         /**
   184         * Two-phased constructor.
   185         * Two-phased constructor.
   294         */
   295         */
   295 		void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, 
   296 		void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, 
   296 												TAccPolGenericID& aOldGenericId,
   297 												TAccPolGenericID& aOldGenericId,
   297 												const CAccSrvConnectionHandler* aCaller, 
   298 												const CAccSrvConnectionHandler* aCaller, 
   298 												TInt aError  );
   299 												TInt aError  );
   299 		
   300         
   300 
       
   301 		void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, 
       
   302                                                 TAccPolGenericID& aOldGenericId,
       
   303 		                                        const CAccSrvSettingsHandler* aCaller, 
       
   304 		                                        TInt aError  );
       
   305        
       
   306         
   301         
   307         /**
   302         /**
   308         * From MAccSrvConnectionControllerObserver
   303         * From MAccSrvConnectionControllerObserver
   309         */
   304         */
   310 		void ConnectionHandlingCancel( const CAccSrvConnectionHandler* aCaller);        
   305 		void ConnectionHandlingCancel( const CAccSrvConnectionHandler* aCaller);        
   337         /**
   332         /**
   338         * From MAccSrvConnectionControllerObserver
   333         * From MAccSrvConnectionControllerObserver
   339         */
   334         */
   340 		void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, 
   335 		void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, 
   341 													 const TUint32 aDefaultValue);
   336 													 const TUint32 aDefaultValue);
       
   337 
       
   338         /**
       
   339         * From CActive
       
   340         */
       
   341         void RunL();
       
   342         void DoCancel();
   342 
   343 
   343     protected:  // New functions
   344     protected:  // New functions
   344 
   345 
   345     protected:  // Functions from base classes
   346     protected:  // Functions from base classes
   346 
   347 
   382         RPointerArray<CAccSrvConnectionHandler> iConnectionHandler;      //Owned
   383         RPointerArray<CAccSrvConnectionHandler> iConnectionHandler;      //Owned
   383 
   384 
   384 	    TUint32                                 iInformationNoteUID;	  
   385 	    TUint32                                 iInformationNoteUID;	  
   385 	    TUint32                                 iInformationNoteDefault;
   386 	    TUint32                                 iInformationNoteDefault;
   386 
   387 
       
   388         // Indicates should accfw show notes about connected accessory. This is 
       
   389         // set to ETrue when accessory is connected and EFalse after note is shown.
       
   390         // The reason for this is to prevent multiple notes one after another
       
   391         TBool                                   iShowNotes;
   387         CAccSrvWiredConnectionPublisher*        iWiredConnPublisher; // Owned
   392         CAccSrvWiredConnectionPublisher*        iWiredConnPublisher; // Owned
   388 
   393 
       
   394 		// Ui notifier
       
   395 		RNotifier iNotifier;
       
   396 		
       
   397 		// Response data from notifier
       
   398 		TInt iReplyValue;
       
   399 		TPckg<TInt> iReplyPck;
       
   400 	
   389     public:     // Friend classes
   401     public:     // Friend classes
   390 
   402 
   391     protected:  // Friend classes
   403     protected:  // Friend classes
   392 
   404 
   393     private:    // Friend classes
   405     private:    // Friend classes