|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CSENDASETEXTNOTIFIER_H__ |
|
17 #define __CSENDASETEXTNOTIFIER_H__ |
|
18 |
|
19 #include <twintnotifier.h> |
|
20 #include <msvapi.h> |
|
21 |
|
22 class CMsvEntrySelection; |
|
23 |
|
24 class CSendAsTextNotifier : public CBase, public MNotifierBase2 |
|
25 { |
|
26 public: |
|
27 // Construction |
|
28 static CSendAsTextNotifier* NewL(); |
|
29 ~CSendAsTextNotifier(); |
|
30 private: |
|
31 CSendAsTextNotifier(); |
|
32 void ConstructL(); |
|
33 |
|
34 // From MNotifierBase2 |
|
35 virtual void Release(); |
|
36 virtual TNotifierInfo RegisterL(); |
|
37 virtual TNotifierInfo Info() const; |
|
38 virtual TPtrC8 StartL(const TDesC8& aBuffer); |
|
39 virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); |
|
40 virtual void Cancel(); |
|
41 virtual TPtrC8 UpdateL(const TDesC8& aBuffer); |
|
42 |
|
43 private: |
|
44 TNotifierInfo iInfo; |
|
45 RMessagePtr2 iMessage; |
|
46 TInt iReplySlot; |
|
47 |
|
48 TSecurityInfo iSecurityInfo; |
|
49 CMsvEntrySelection* iSelection; |
|
50 }; |
|
51 |
|
52 //********************************** |
|
53 // CDummyObserver |
|
54 //********************************** |
|
55 |
|
56 class CDummyObserver : public CBase, public MMsvSessionObserver |
|
57 { |
|
58 public: |
|
59 void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {}; |
|
60 }; |
|
61 |
|
62 #endif // __CSENDASETEXTNOTIFIER_H__ |
|
63 |
|
64 |