|
1 // csmtpupsresponsewaiter.h |
|
2 |
|
3 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 // All rights reserved. |
|
5 // This component and the accompanying materials are made available |
|
6 // under the terms of "Eclipse Public License v1.0" |
|
7 // which accompanies this distribution, and is available |
|
8 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 // |
|
10 // Initial Contributors: |
|
11 // Nokia Corporation - initial contribution. |
|
12 // |
|
13 // Contributors: |
|
14 // |
|
15 // Description: |
|
16 // |
|
17 |
|
18 #ifndef __CSMTPUPSRESPONSEWAITER_H__ |
|
19 #define __CSMTPUPSRESPONSEWAITER_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <mentact.h> |
|
23 |
|
24 #include <ups/upsclient.h> |
|
25 using namespace UserPromptService; |
|
26 |
|
27 class CMsgActive; |
|
28 class CImSmtpSettings; |
|
29 |
|
30 |
|
31 /** |
|
32 An class that is used for connect to the UPS server and check if the client is authorised |
|
33 to connect to the remote server. |
|
34 @internalComponent |
|
35 @released |
|
36 */ |
|
37 NONSHARABLE_CLASS (CSmtpUpsResponseWaiter) : public CMsgActive |
|
38 { |
|
39 public: |
|
40 static CSmtpUpsResponseWaiter* NewL(); |
|
41 ~CSmtpUpsResponseWaiter(); |
|
42 |
|
43 void AuthoriseAndConnectL(const CImSmtpSettings& aSettings, TBool aHasCapability, TThreadId aClientThreadId, TRequestStatus& aStatus); |
|
44 |
|
45 protected: |
|
46 CSmtpUpsResponseWaiter(); |
|
47 |
|
48 // from CMsgActive; |
|
49 void DoRunL(); |
|
50 void DoCancel(); |
|
51 |
|
52 private: |
|
53 /** For interaction with UPS server */ |
|
54 RUpsSession iUpsSession; |
|
55 RUpsSubsession iUpsSubsession; |
|
56 TUpsDecision iDecision; |
|
57 }; |
|
58 |
|
59 #endif// __CSMTPUPSRESPONSEWAITER_H__ |