26 // CSecuiDialogNotifier::~CSecuiDialogNotifier() |
26 // CSecuiDialogNotifier::~CSecuiDialogNotifier() |
27 // --------------------------------------------------------------------------- |
27 // --------------------------------------------------------------------------- |
28 // |
28 // |
29 CSecuiDialogNotifier::~CSecuiDialogNotifier() |
29 CSecuiDialogNotifier::~CSecuiDialogNotifier() |
30 { |
30 { |
31 TRACE( "CSecuiDialogNotifier::~CSecuiDialogNotifier" ); |
31 RDEBUG("0", 0); |
32 Cancel(); |
32 Cancel(); |
33 } |
33 } |
34 |
34 |
35 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
36 // CSecuiDialogNotifier::NewL() |
36 // CSecuiDialogNotifier::NewL() |
37 // --------------------------------------------------------------------------- |
37 // --------------------------------------------------------------------------- |
38 // |
38 // |
39 CSecuiDialogNotifier* CSecuiDialogNotifier::NewL() |
39 CSecuiDialogNotifier* CSecuiDialogNotifier::NewL() |
40 { |
40 { |
41 TRACE( "CSecuiDialogNotifier::NewL, 1 =%d", 1 ); |
41 RDEBUG("0", 0); |
42 CSecuiDialogNotifier* self = new( ELeave ) CSecuiDialogNotifier; |
42 CSecuiDialogNotifier* self = new( ELeave ) CSecuiDialogNotifier; |
43 CleanupStack::PushL( self ); |
43 CleanupStack::PushL( self ); |
44 self->ConstructL(); |
44 self->ConstructL(); |
45 CleanupStack::Pop( self ); |
45 CleanupStack::Pop( self ); |
46 return self; |
46 return self; |
50 // CSecuiDialogNotifier::Release() |
50 // CSecuiDialogNotifier::Release() |
51 // --------------------------------------------------------------------------- |
51 // --------------------------------------------------------------------------- |
52 // |
52 // |
53 void CSecuiDialogNotifier::Release() |
53 void CSecuiDialogNotifier::Release() |
54 { |
54 { |
55 TRACE( "CSecuiDialogNotifier::Release" ); |
55 RDEBUG("0", 0); |
56 delete this; |
56 delete this; |
57 } |
57 } |
58 |
58 |
59 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
60 // CSecuiDialogNotifier::RegisterL() |
60 // CSecuiDialogNotifier::RegisterL() |
61 // --------------------------------------------------------------------------- |
61 // --------------------------------------------------------------------------- |
62 // |
62 // |
63 CSecuiDialogNotifier::TNotifierInfo CSecuiDialogNotifier::RegisterL() |
63 CSecuiDialogNotifier::TNotifierInfo CSecuiDialogNotifier::RegisterL() |
64 { |
64 { |
65 TRACE( "CSecuiDialogNotifier::RegisterL, 1 =%d", 1 ); |
65 RDEBUG("0", 0); |
66 return Info(); |
66 return Info(); |
67 } |
67 } |
68 |
68 |
69 // --------------------------------------------------------------------------- |
69 // --------------------------------------------------------------------------- |
70 // CSecuiDialogNotifier::Info() |
70 // CSecuiDialogNotifier::Info() |
71 // --------------------------------------------------------------------------- |
71 // --------------------------------------------------------------------------- |
72 // |
72 // |
73 CSecuiDialogNotifier::TNotifierInfo CSecuiDialogNotifier::Info() const |
73 CSecuiDialogNotifier::TNotifierInfo CSecuiDialogNotifier::Info() const |
74 { |
74 { |
75 TRACE( "CSecuiDialogNotifier::Info, 1 =%d", 1 ); |
75 RDEBUG("0", 0); |
76 |
76 |
77 TNotifierInfo info; |
77 TNotifierInfo info; |
78 static const TUid KUidSecuiDialogNotifier = { 0x10005988 }; |
78 static const TUid KUidSecuiDialogNotifier = { 0x10005988 }; |
79 info.iUid = KUidSecuiDialogNotifier; |
79 info.iUid = KUidSecuiDialogNotifier; |
80 const TUid KSecAuthChannel = {0x00000602}; |
80 const TUid KSecAuthChannel = {0x00000602}; |
88 // --------------------------------------------------------------------------- |
88 // --------------------------------------------------------------------------- |
89 // |
89 // |
90 void CSecuiDialogNotifier::StartL( const TDesC8& aBuffer, TInt aReplySlot, |
90 void CSecuiDialogNotifier::StartL( const TDesC8& aBuffer, TInt aReplySlot, |
91 const RMessagePtr2& aMessage ) |
91 const RMessagePtr2& aMessage ) |
92 { |
92 { |
93 TRACE( "CSecuiDialogNotifier::StartL, begin" ); |
93 RDEBUG("0", 0); |
94 |
94 |
95 TRAPD( err, DoStartL( aBuffer, aReplySlot, aMessage ) ); |
95 TRAPD( err, DoStartL( aBuffer, aReplySlot, aMessage ) ); |
96 TRACE( "CSecuiDialogNotifier::StartL, DoStartL err=%d", err ); |
96 RDEBUG("err", err); |
97 if( err ) |
97 if( err ) |
98 { |
98 { |
99 if( iSecuiDialogs && !iIsSecuiDialogsDeleted ) |
99 if( iSecuiDialogs && !iIsSecuiDialogsDeleted ) |
100 { |
100 { |
101 TRACE( "CSecuiDialogNotifier::StartL, deleting iSecuiDialogs" ); |
101 RDEBUG("0", 0); |
102 delete iSecuiDialogs; |
102 delete iSecuiDialogs; |
103 iSecuiDialogs = NULL; |
103 iSecuiDialogs = NULL; |
104 } |
104 } |
105 if( !aMessage.IsNull() ) |
105 if( !aMessage.IsNull() ) |
106 { |
106 { |
107 TRACE( "CSecuiDialogNotifier::StartL, completing message" ); |
107 RDEBUG("0", 0); |
108 aMessage.Complete( err ); |
108 aMessage.Complete( err ); |
109 } |
109 } |
110 } |
110 } |
111 |
111 |
112 TRACE( "CSecuiDialogNotifier::StartL, end" ); |
112 RDEBUG("0x99", 0x99); |
113 } |
113 } |
114 |
114 |
115 // --------------------------------------------------------------------------- |
115 // --------------------------------------------------------------------------- |
116 // CSecuiDialogNotifier::StartL() |
116 // CSecuiDialogNotifier::StartL() |
117 // --------------------------------------------------------------------------- |
117 // --------------------------------------------------------------------------- |
125 // CSecuiDialogNotifier::Cancel() |
125 // CSecuiDialogNotifier::Cancel() |
126 // --------------------------------------------------------------------------- |
126 // --------------------------------------------------------------------------- |
127 // |
127 // |
128 void CSecuiDialogNotifier::Cancel() |
128 void CSecuiDialogNotifier::Cancel() |
129 { |
129 { |
130 TRACE( "CSecuiDialogNotifier::Cancel" ); |
130 RDEBUG("0", 0); |
131 if( iSecuiDialogs && !iIsSecuiDialogsDeleted ) |
131 if( iSecuiDialogs && !iIsSecuiDialogsDeleted ) |
132 { |
132 { |
133 TRACE( "CSecuiDialogNotifier::Cancel, deleting iSecuiDialogs" ); |
133 RDEBUG("0", 0); |
134 delete iSecuiDialogs; |
134 delete iSecuiDialogs; |
135 iSecuiDialogs = NULL; |
135 iSecuiDialogs = NULL; |
136 } |
136 } |
137 } |
137 } |
138 |
138 |
149 // CSecuiDialogNotifier::CSecuiDialogNotifier() |
149 // CSecuiDialogNotifier::CSecuiDialogNotifier() |
150 // --------------------------------------------------------------------------- |
150 // --------------------------------------------------------------------------- |
151 // |
151 // |
152 CSecuiDialogNotifier::CSecuiDialogNotifier() |
152 CSecuiDialogNotifier::CSecuiDialogNotifier() |
153 { |
153 { |
154 TRACE( "CSecuiDialogNotifier::CSecuiDialogNotifier" ); |
154 RDEBUG("0", 0); |
155 } |
155 } |
156 |
156 |
157 // --------------------------------------------------------------------------- |
157 // --------------------------------------------------------------------------- |
158 // CSecuiDialogNotifier::ConstructL() |
158 // CSecuiDialogNotifier::ConstructL() |
159 // --------------------------------------------------------------------------- |
159 // --------------------------------------------------------------------------- |
167 // --------------------------------------------------------------------------- |
167 // --------------------------------------------------------------------------- |
168 // |
168 // |
169 void CSecuiDialogNotifier::DoStartL( const TDesC8& aBuffer, TInt aReplySlot, |
169 void CSecuiDialogNotifier::DoStartL( const TDesC8& aBuffer, TInt aReplySlot, |
170 const RMessagePtr2& aMessage ) |
170 const RMessagePtr2& aMessage ) |
171 { |
171 { |
172 TRACE( "CSecuiDialogNotifier::DoStartL, 1 =%d", 1 ); |
172 RDEBUG("0", 0); |
173 |
173 |
174 iSecuiDialogs = CSecuiDialogs::NewL( iIsSecuiDialogsDeleted ); |
174 iSecuiDialogs = CSecuiDialogs::NewL( iIsSecuiDialogsDeleted ); |
175 iSecuiDialogs->StartLD( aBuffer, aReplySlot, aMessage ); |
175 iSecuiDialogs->StartLD( aBuffer, aReplySlot, aMessage ); |
176 } |
176 } |
177 |
177 |