1 /* |
|
2 * Copyright (c) 2002 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: Definition of the global progress dialog class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef OBEXUTILSENTRYHANDLER_H_ |
|
21 #define OBEXUTILSENTRYHANDLER_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <cmsvattachment.h> |
|
25 |
|
26 /** |
|
27 * Obexutils link hander |
|
28 * Maintain the links in inbox. |
|
29 * |
|
30 * @since S60 v5.0 |
|
31 */ |
|
32 |
|
33 NONSHARABLE_CLASS( CObexutilsEntryhandler ) : public CActive |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 static CObexutilsEntryhandler* NewL(); |
|
39 static CObexutilsEntryhandler* NewLC(); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 virtual ~CObexutilsEntryhandler(); |
|
45 |
|
46 /** |
|
47 * Add an linked attachment to entry |
|
48 * |
|
49 * @since S60 v5.0 |
|
50 * @param aFilePath The absolute file path of the linked attachment file. |
|
51 * @param anAttachInfo The attachment info associated with the file. |
|
52 * @param aStore An interface over the message store that is associated with a message entry. |
|
53 * @return error code |
|
54 */ |
|
55 TInt AddEntryAttachment(const TDesC &aFilePath, CMsvAttachment* anAttachInfo, CMsvStore* aStore ); |
|
56 |
|
57 |
|
58 // from base class CActive |
|
59 |
|
60 /** |
|
61 * From CActive. |
|
62 * RunL |
|
63 * |
|
64 * @since S60 v5.0 |
|
65 */ |
|
66 void RunL(); |
|
67 |
|
68 /** |
|
69 * From CActive. |
|
70 * DoCancel |
|
71 * |
|
72 * @since S60 v5.0 |
|
73 */ |
|
74 void DoCancel(); |
|
75 |
|
76 |
|
77 private: |
|
78 /** |
|
79 * Default C++ constructor. |
|
80 */ |
|
81 CObexutilsEntryhandler(); |
|
82 |
|
83 /** |
|
84 * Symbian two-phase constructor. |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 |
|
89 private: // member data |
|
90 |
|
91 |
|
92 /** |
|
93 * Sync waiter object |
|
94 */ |
|
95 CActiveSchedulerWait iSyncWaiter; |
|
96 |
|
97 |
|
98 }; |
|
99 |
|
100 |
|
101 #endif /*OBEXUTILSENTRYHANDLER_H_*/ |
|