|
1 // cpopupsresponsewaiter.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 __CPOPUPSRESPONSEWAITER_H__ |
|
19 #define __CPOPUPSRESPONSEWAITER_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <mentact.h> |
|
23 |
|
24 #include <ups/upsclient.h> |
|
25 using namespace UserPromptService; |
|
26 |
|
27 class CImPop3Settings; |
|
28 |
|
29 /** |
|
30 An class that is used for connect to the UPS server and check if the client is authorised |
|
31 to connect to the remote server. |
|
32 @internalComponent |
|
33 @released |
|
34 */ |
|
35 |
|
36 NONSHARABLE_CLASS (CPopUpsResponseWaiter) : public CMsgActive |
|
37 { |
|
38 public: |
|
39 static CPopUpsResponseWaiter* NewL(); |
|
40 ~CPopUpsResponseWaiter(); |
|
41 void AuthoriseAndConnectL(CImPop3Settings* aPopSettings, TThreadId aClientThreadId, TBool aHasCapability, TRequestStatus& aStatus); |
|
42 |
|
43 protected: |
|
44 CPopUpsResponseWaiter(); |
|
45 |
|
46 // from CMsgActive; |
|
47 void DoRunL(); |
|
48 void DoCancel(); |
|
49 |
|
50 private: |
|
51 CImPop3Settings* iPopSettings; |
|
52 /** For interaction with UPS server */ |
|
53 RUpsSession iUpsSession; |
|
54 RUpsSubsession iUpsSubsession; |
|
55 TUpsDecision iDecision; |
|
56 }; |
|
57 |
|
58 #endif// __CPOPUPSRESPONSEWAITER_H__ |