|
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 __CSENDASEUINOTIFIER_H__ |
|
17 #define __CSENDASEUINOTIFIER_H__ |
|
18 |
|
19 #include <eiknotapi.h> |
|
20 #include <msvapi.h> |
|
21 #include <ecom/ecom.h> |
|
22 class CMsvEntrySelection; |
|
23 |
|
24 const TUint KCountServMajorVersionNumber=0; |
|
25 const TUint KCountServMinorVersionNumber=1; |
|
26 const TUint KCountServBuildVersionNumber=1; |
|
27 |
|
28 _LIT(KDummyServerName, "DummyServer"); |
|
29 _LIT(KDummyServerExe, "Dummyserver.exe"); |
|
30 |
|
31 |
|
32 |
|
33 // Function codes (opcodes) used in message passing between client and server |
|
34 enum TServReqst |
|
35 { |
|
36 EServGetTMsvEntry = 1, |
|
37 }; |
|
38 |
|
39 class CSendAsUINotifier : public CBase, public MEikSrvNotifierBase2 |
|
40 { |
|
41 public: |
|
42 // Construction |
|
43 static CSendAsUINotifier* NewL(); |
|
44 ~CSendAsUINotifier(); |
|
45 private: |
|
46 CSendAsUINotifier(); |
|
47 void ConstructL(); |
|
48 |
|
49 // From MEikSrvNotifierBase2 |
|
50 virtual void Release(); |
|
51 virtual TNotifierInfo RegisterL(); |
|
52 virtual TNotifierInfo Info() const; |
|
53 virtual TPtrC8 StartL(const TDesC8& aBuffer); |
|
54 virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); |
|
55 virtual void Cancel(); |
|
56 virtual TPtrC8 UpdateL(const TDesC8& aBuffer); |
|
57 |
|
58 private: |
|
59 TNotifierInfo iInfo; |
|
60 RMessagePtr2 iMessage; |
|
61 TInt iReplySlot; |
|
62 TSecurityInfo iSecurityInfo; |
|
63 CMsvEntrySelection* iSelection; |
|
64 }; |
|
65 |
|
66 |
|
67 class RDummyServSession : public RSessionBase |
|
68 { |
|
69 public: |
|
70 RDummyServSession(); |
|
71 TInt Connect(); |
|
72 TVersion Version() const; |
|
73 TMsvEntry GetTMsvEntry(CMsvEntrySelection* iSelection); |
|
74 }; |
|
75 |
|
76 #endif // __CSENDASEUINOTIFIER_H__ |
|
77 |
|
78 |
|
79 |
|
80 |