equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 #include "MagicStateAccessors.h" |
|
17 #include "Interface.h" |
|
18 |
|
19 TInt TExampleInterface_StateAccessor::InvariantTest(TAny* aTestObject) |
|
20 { |
|
21 CExampleInterface* interfaceInstance = REINTERPRET_CAST(CExampleInterface*,aTestObject); |
|
22 if(interfaceInstance) |
|
23 { |
|
24 // Validate the internal state variables. |
|
25 } |
|
26 return KErrNone; |
|
27 } |
|
28 |
|
29 TInt TExampleInterface_StateAccessor::Internalize(TAny* aTestObject) |
|
30 { |
|
31 CExampleInterface* interfaceInstance = REINTERPRET_CAST(CExampleInterface*,aTestObject); |
|
32 if(interfaceInstance) |
|
33 { |
|
34 // Set the internal state variables. |
|
35 } |
|
36 return KErrNone; |
|
37 } |
|
38 |
|
39 TInt TExampleInterface_StateAccessor::Externalize(TAny* aTestObject) |
|
40 { |
|
41 CExampleInterface* interfaceInstance = REINTERPRET_CAST(CExampleInterface*,aTestObject); |
|
42 if(interfaceInstance) |
|
43 { |
|
44 // Get the internal state variables. |
|
45 } |
|
46 return KErrNone; |
|
47 } |
|
48 |
|
49 TUid TExampleInterface_StateAccessor::GetDtorKey(CExampleInterface* aTestObject) |
|
50 { |
|
51 if(aTestObject) |
|
52 return aTestObject->iDtor_ID_Key; |
|
53 else |
|
54 return KNullUid; |
|
55 } |
|
56 |