|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Always online plugin for freestyle smtp handling |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __IPSSOSAOSMTPAGENT_H__ |
|
20 #define __IPSSOSAOSMTPAGENT_H__ |
|
21 |
|
22 |
|
23 #include <e32base.h> // CBase |
|
24 #include <msvapi.h> |
|
25 |
|
26 class CIpsPlgSmtpOperation; |
|
27 class CIpsSetDataApi; |
|
28 |
|
29 /** |
|
30 * class CIpsSosAOSmtpAgent; |
|
31 * |
|
32 */ |
|
33 class CIpsSosAOSmtpAgent : |
|
34 public CActive |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two phased constructor |
|
39 * @return CIpsSosAOSmtpAgent*, self pointer |
|
40 */ |
|
41 static CIpsSosAOSmtpAgent* NewL( |
|
42 CMsvSession& aSession ); |
|
43 |
|
44 /** |
|
45 * Two phased constructor |
|
46 * @return CIpsSosAOSmtpAgent*, self pointer |
|
47 */ |
|
48 static CIpsSosAOSmtpAgent* NewLC( |
|
49 CMsvSession& aSession ); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 virtual ~CIpsSosAOSmtpAgent(); |
|
55 |
|
56 virtual void DoCancel(); |
|
57 virtual void RunL(); |
|
58 |
|
59 void HandleSessionEventL( |
|
60 MMsvSessionObserver::TMsvSessionEvent aEvent, |
|
61 TAny* aArg1, |
|
62 TAny* aArg2, |
|
63 TAny* aArg3 ); |
|
64 |
|
65 void EmptyOutboxNowL( TMsvId aMessage ); |
|
66 |
|
67 private: |
|
68 /** |
|
69 * Constructor |
|
70 */ |
|
71 CIpsSosAOSmtpAgent( |
|
72 CMsvSession& aSession ); |
|
73 |
|
74 /** |
|
75 * ConstructL |
|
76 * Second phase constructor |
|
77 */ |
|
78 void ConstructL(); |
|
79 |
|
80 void CreateInternalDataL( ); |
|
81 |
|
82 void ReleaseInternalData( ); |
|
83 |
|
84 |
|
85 private: |
|
86 |
|
87 |
|
88 //data |
|
89 private: |
|
90 |
|
91 CMsvSession& iSession; |
|
92 |
|
93 CIpsPlgSmtpOperation* iOperation; |
|
94 |
|
95 CIpsSetDataApi* iSettingsApi; |
|
96 |
|
97 TInt iError; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif /* __IPSSOSAOSMTPAGENT_H__ */ |
|
102 //EOF |