|
1 // Copyright (c) 2004-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 __IPCCOMMANDFORCAPSPERMISSIONS_H__ |
|
17 #define __IPCCOMMANDFORCAPSPERMISSIONS_H__ |
|
18 |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <e32std.h> |
|
22 |
|
23 |
|
24 #include <msvipc.h> |
|
25 |
|
26 |
|
27 class CMtfTestCase; |
|
28 |
|
29 void IPCCommandReportPassOrFailForCapsPermissions( CMtfTestCase& aTestCase, const TDesC& aTestName, TInt aError ,TInt aPass ); |
|
30 |
|
31 |
|
32 // |
|
33 // Require this to get access so can set parent etc. |
|
34 // |
|
35 class TMsvEntryForward : public TMsvEntry |
|
36 { |
|
37 public : |
|
38 void SetParent(TMsvId aId) |
|
39 { |
|
40 TMsvEntry::SetParent(aId); |
|
41 }; |
|
42 void SetId(TMsvId aId) |
|
43 { |
|
44 TMsvEntry::SetId(aId); |
|
45 } |
|
46 |
|
47 }; |
|
48 |
|
49 |
|
50 enum TCreateEntryType |
|
51 { |
|
52 ECreateService, |
|
53 ECreateMessage, |
|
54 ECreateRemote, |
|
55 ECreateMessageSMS, |
|
56 ECreateServiceSMS, |
|
57 ECreateRemoteSMS |
|
58 }; |
|
59 |
|
60 |
|
61 void FillInSimpleMessageEntry( TMsvId aMessageId, TMsvId aParentId, TMsvId aServiceId, TMsvEntryForward& aEntry); |
|
62 void FillInServiceEntry( TMsvId aMessageId, TMsvEntryForward& aEntry); |
|
63 void FillInRemoteMessageEntry( TMsvId aMessageId, TMsvId aParentId, TMsvId aServiceId, TMsvEntryForward& aEntry); |
|
64 |
|
65 class RProxyServerSession; |
|
66 void CheckWentInStoreL(CMtfTestCase& aTestCase, const TDesC& aTestName, |
|
67 RProxyServerSession& RPSS , TMsvId id, TMsvEntryForward& entry , TMsvOp& operationId ); |
|
68 |
|
69 |
|
70 #endif //__IPCCOMMANDFORCAPSPERMISSIONS_H__ |