|
1 /* |
|
2 * Copyright (c) 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: Declaration of CCCPCallParameters class. |
|
15 * |
|
16 */ |
|
17 #ifndef C_CCPCALLPARAMETERS_H |
|
18 #define C_CCPCALLPARAMETERS_H |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <ccpdefs.h> |
|
22 /** |
|
23 * Common paramaters for all calls. |
|
24 */ |
|
25 class CCCPCallParameters: public CBase |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Call type enumeration. |
|
30 */ |
|
31 public: |
|
32 /** Constructor. */ |
|
33 IMPORT_C static CCCPCallParameters* NewL(); |
|
34 |
|
35 |
|
36 /** Destructor. */ |
|
37 IMPORT_C ~CCCPCallParameters(); |
|
38 |
|
39 virtual CCCPCallParameters* CloneL() const; |
|
40 |
|
41 protected: |
|
42 IMPORT_C CCCPCallParameters(); |
|
43 IMPORT_C void ConstructL(); |
|
44 |
|
45 public: |
|
46 |
|
47 |
|
48 // New functions |
|
49 /** Sets the service id identifying the service provider of the call. */ |
|
50 IMPORT_C void SetServiceId(TUint32 aServiceId); |
|
51 /** Gets the service id identifying the service provider of the call. */ |
|
52 IMPORT_C TUint32 ServiceId() const; |
|
53 /** Sets the type of the call. */ |
|
54 IMPORT_C void SetCallType(CCPCall::TCallType aCallType); |
|
55 /** Gets the type of the call. */ |
|
56 IMPORT_C CCPCall::TCallType CallType() const; |
|
57 |
|
58 |
|
59 private: |
|
60 /** Service Id for the call. */ |
|
61 TUint32 iServiceId; |
|
62 /** Call type, used in CCP API */ |
|
63 CCPCall::TCallType iCallType; |
|
64 }; |
|
65 |
|
66 #endif // C_CCPCALLPARAMETERS_H |