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. |
338 /** |
337 /** |
339 * From MAccSrvConnectionControllerObserver |
338 * From MAccSrvConnectionControllerObserver |
340 */ |
339 */ |
341 void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, |
340 void SetDefaultAccessoryInformation( const TAccPolGenericID& aGenericID, |
342 const TUint32 aDefaultValue); |
341 const TUint32 aDefaultValue); |
343 |
|
344 /** |
|
345 * From CActive |
|
346 */ |
|
347 void RunL(); |
|
348 void DoCancel(); |
|
349 |
342 |
350 protected: // New functions |
343 protected: // New functions |
351 |
344 |
352 protected: // Functions from base classes |
345 protected: // Functions from base classes |
353 |
346 |
389 RPointerArray<CAccSrvConnectionHandler> iConnectionHandler; //Owned |
382 RPointerArray<CAccSrvConnectionHandler> iConnectionHandler; //Owned |
390 |
383 |
391 TUint32 iInformationNoteUID; |
384 TUint32 iInformationNoteUID; |
392 TUint32 iInformationNoteDefault; |
385 TUint32 iInformationNoteDefault; |
393 |
386 |
394 // Indicates should accfw show notes about connected accessory. This is |
|
395 // set to ETrue when accessory is connected and EFalse after note is shown. |
|
396 // The reason for this is to prevent multiple notes one after another |
|
397 TBool iShowNotes; |
|
398 CAccSrvWiredConnectionPublisher* iWiredConnPublisher; // Owned |
387 CAccSrvWiredConnectionPublisher* iWiredConnPublisher; // Owned |
399 |
388 |
400 // Ui notifier |
|
401 RNotifier iNotifier; |
|
402 |
|
403 // Response data from notifier |
|
404 TInt iReplyValue; |
|
405 TPckg<TInt> iReplyPck; |
|
406 |
|
407 public: // Friend classes |
389 public: // Friend classes |
408 |
390 |
409 protected: // Friend classes |
391 protected: // Friend classes |
410 |
392 |
411 private: // Friend classes |
393 private: // Friend classes |