equal
deleted
inserted
replaced
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 CActive, |
179 NONSHARABLE_CLASS( CAccSrvConnectionController ) : public MAccSrvConnectionControllerObserver |
180 public MAccSrvConnectionControllerObserver |
|
181 { |
180 { |
182 public :// Constructors and destructor |
181 public :// Constructors and destructor |
183 |
182 |
184 /** |
183 /** |
185 * Two-phased constructor. |
184 * Two-phased constructor. |
295 */ |
294 */ |
296 void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, |
295 void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, |
297 TAccPolGenericID& aOldGenericId, |
296 TAccPolGenericID& aOldGenericId, |
298 const CAccSrvConnectionHandler* aCaller, |
297 const CAccSrvConnectionHandler* aCaller, |
299 TInt aError ); |
298 TInt aError ); |
300 |
299 |
|
300 |
|
301 void HandleConnectionUpdateValidationL( const TAccPolGenericID& aGenericID, |
|
302 TAccPolGenericID& aOldGenericId, |
|
303 const CAccSrvSettingsHandler* aCaller, |
|
304 TInt aError ); |
|
305 |
301 |
306 |
302 /** |
307 /** |
303 * From MAccSrvConnectionControllerObserver |
308 * From MAccSrvConnectionControllerObserver |
304 */ |
309 */ |
305 void ConnectionHandlingCancel( const CAccSrvConnectionHandler* aCaller); |
310 void ConnectionHandlingCancel( const CAccSrvConnectionHandler* aCaller); |
332 /** |
337 /** |
333 * From MAccSrvConnectionControllerObserver |
338 * From MAccSrvConnectionControllerObserver |
334 */ |
339 */ |
335 void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, |
340 void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, |
336 const TUint32 aDefaultValue); |
341 const TUint32 aDefaultValue); |
337 |
|
338 /** |
|
339 * From CActive |
|
340 */ |
|
341 void RunL(); |
|
342 void DoCancel(); |
|
343 |
342 |
344 protected: // New functions |
343 protected: // New functions |
345 |
344 |
346 protected: // Functions from base classes |
345 protected: // Functions from base classes |
347 |
346 |
383 RPointerArray<CAccSrvConnectionHandler> iConnectionHandler; //Owned |
382 RPointerArray<CAccSrvConnectionHandler> iConnectionHandler; //Owned |
384 |
383 |
385 TUint32 iInformationNoteUID; |
384 TUint32 iInformationNoteUID; |
386 TUint32 iInformationNoteDefault; |
385 TUint32 iInformationNoteDefault; |
387 |
386 |
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; |
|
392 CAccSrvWiredConnectionPublisher* iWiredConnPublisher; // Owned |
387 CAccSrvWiredConnectionPublisher* iWiredConnPublisher; // Owned |
393 |
388 |
394 // Ui notifier |
|
395 RNotifier iNotifier; |
|
396 |
|
397 // Response data from notifier |
|
398 TInt iReplyValue; |
|
399 TPckg<TInt> iReplyPck; |
|
400 |
|
401 public: // Friend classes |
389 public: // Friend classes |
402 |
390 |
403 protected: // Friend classes |
391 protected: // Friend classes |
404 |
392 |
405 private: // Friend classes |
393 private: // Friend classes |