1 /* |
|
2 * Copyright (c) 2005-2009 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: CSConInboxHandler header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _SCONINBOXHANDLER_H_ |
|
20 #define _SCONINBOXHANDLER_H_ |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <e32cons.h> |
|
26 #include <msvapi.h> |
|
27 |
|
28 |
|
29 //============================================================ |
|
30 // Class CSConInboxHandler declaration |
|
31 //============================================================ |
|
32 NONSHARABLE_CLASS( CSConInboxHandler ) : public CBase, MMsvSessionObserver |
|
33 { |
|
34 public: |
|
35 static CSConInboxHandler* NewL(); |
|
36 virtual ~CSConInboxHandler(); |
|
37 |
|
38 /** |
|
39 * Creates an attachment to device's Inbox |
|
40 * @param aObject CObexBufObject object |
|
41 * @return KErrNone if no errors, else system wide error codes. |
|
42 */ |
|
43 TInt CreateInboxAttachmentL( CObexBufObject*& aObject, |
|
44 CBufFlat*& aBuffer ); |
|
45 /** |
|
46 * Saves the object to the Inbox |
|
47 * @param aObject CObexBufObject object |
|
48 * @return KErrNone if no errors, else system wide error codes. |
|
49 */ |
|
50 TInt SaveObjToInboxL( CObexBufObject*& aObject ); |
|
51 /** |
|
52 * Aborts the storing operation |
|
53 * @param aObject CObexBufObject object |
|
54 * @return KErrNone if no errors, else system wide error codes. |
|
55 */ |
|
56 TInt AbortInboxOperation( CObexBufObject*& aObject ); |
|
57 /** |
|
58 * Implementation of MMsvSessionObserver::HandleSessionEventL |
|
59 * @param aEvent Indicates the event type. |
|
60 * @param aArg1 Event type-specific argument value |
|
61 * @param aArg2 Event type-specific argument value |
|
62 * @param aArg3 Event type-specific argument value |
|
63 * @return none |
|
64 */ |
|
65 void HandleSessionEventL( TMsvSessionEvent aEvent, |
|
66 TAny* aArg1, |
|
67 TAny* aArg2, |
|
68 TAny* aArg3 ); |
|
69 |
|
70 private: |
|
71 CSConInboxHandler(); |
|
72 |
|
73 TInt GetMessageCenterDriveL(); |
|
74 |
|
75 private: |
|
76 TInt iDrive; |
|
77 TMsvId iMsvIdParent; |
|
78 TMsvId iMsvIdAttach; |
|
79 RFile iFile; |
|
80 }; |
|
81 |
|
82 #endif |
|
83 |
|
84 // End of file |
|