|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CCALL_H__ |
|
21 #define __CCALL_H__ |
|
22 |
|
23 #include <string> |
|
24 #include "GenericStub.h" |
|
25 |
|
26 using std::string; |
|
27 |
|
28 class CCall |
|
29 { |
|
30 public: |
|
31 CCall( const TCall& aCall ); |
|
32 ~CCall(); |
|
33 |
|
34 // Return the Call ID |
|
35 bool CallID( int& aCallID ) const; |
|
36 |
|
37 // Return the number of parameters |
|
38 bool Params( int& aNumParams ) const; |
|
39 |
|
40 // Return the name of a parameter within the call |
|
41 bool Name( int anIndex, string& aName ) const; |
|
42 |
|
43 // Return the value of the parameter within the call |
|
44 bool Value( int anIndex, string& aValue ) const; |
|
45 |
|
46 // Get the index into the TCall array with a matching specified parameter name |
|
47 int GetIndex(const string &aName) const; |
|
48 |
|
49 // Retrieve the value of the specified parameter |
|
50 bool Get(const string &aName, string &aValue) const; |
|
51 bool Get(const string &aName, int &aValue) const; |
|
52 bool Get(const string &aName, bool &aValue) const; |
|
53 |
|
54 // Dump the contents to stdout (useful debugging aid) |
|
55 void Dump() const; |
|
56 |
|
57 private: |
|
58 TCall iCall; |
|
59 |
|
60 bool Check( const string& aValue, const unsigned int aMaxLength ) const; |
|
61 }; |
|
62 |
|
63 #endif // __CCALL_H__ |