equal
deleted
inserted
replaced
58 // ---------------------------------------------------------------------------- |
58 // ---------------------------------------------------------------------------- |
59 // |
59 // |
60 // ---------------------------------------------------------------------------- |
60 // ---------------------------------------------------------------------------- |
61 // |
61 // |
62 void CCPActiveNotifier::RegisterL( MLiwNotifyCallback* aObserver, |
62 void CCPActiveNotifier::RegisterL( MLiwNotifyCallback* aObserver, |
63 TInt32 aTransactionId, CCPLiwMap* aMap ) |
63 TInt32 aTransactionId, |
|
64 CCPLiwMap* aMap, |
|
65 TUint aCmdOptions ) |
64 { |
66 { |
65 CP_DEBUG( _L8("CCPActiveNotifier::RegisterL()" ) ); |
67 CP_DEBUG( _L8("CCPActiveNotifier::RegisterL()" ) ); |
66 TIpcArgs args; |
68 TIpcArgs args; |
67 |
69 |
68 if(iObservers.Find( aTransactionId )) |
70 if(iObservers.Find( aTransactionId )) |
75 iObserverBuf = NULL; |
77 iObserverBuf = NULL; |
76 iObserverBuf = aMap->PackForServerLC( ); |
78 iObserverBuf = aMap->PackForServerLC( ); |
77 CleanupStack::Pop( iObserverBuf ); |
79 CleanupStack::Pop( iObserverBuf ); |
78 args.Set( KDescriptorPosition, &*iObserverBuf ); |
80 args.Set( KDescriptorPosition, &*iObserverBuf ); |
79 args.Set( KTransactionPosition, aTransactionId ); |
81 args.Set( KTransactionPosition, aTransactionId ); |
80 |
82 args.Set( KOptionsPosition, static_cast<TInt>( aCmdOptions )); |
81 if ( !IsActive( ) ) |
83 if ( !IsActive( ) ) |
82 { |
84 { |
83 iSizeDes = new (ELeave) TPckgBuf<TInt>( ); |
85 iSizeDes = new (ELeave) TPckgBuf<TInt>( ); |
84 args.Set( KReturnPosition, iSizeDes ); |
86 args.Set( KReturnPosition, iSizeDes ); |
85 iServerClient.RegisterObserverL( iStatus, args ); |
87 iServerClient.RegisterObserverL( iStatus, args ); |