|
1 // Copyright (c) 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: class TAppServiceInfo represents the Service Info |
|
14 // structure of Resource File. Member Function of this Class are defined. |
|
15 // |
|
16 |
|
17 /** |
|
18 * @file apaid.cpp |
|
19 * |
|
20 * @internalComponent |
|
21 * @released |
|
22 */ |
|
23 |
|
24 #include "apaid.h" |
|
25 #include <cassert> |
|
26 |
|
27 // |
|
28 // class TAppServiceInfo |
|
29 // |
|
30 |
|
31 //Default Constructor for class TAppServiceInfo |
|
32 TAppServiceInfo::TAppServiceInfo() |
|
33 : iUid(NullUid), |
|
34 iDataTypes(0) |
|
35 { |
|
36 } |
|
37 |
|
38 //Destructor for class TAppServiceInfo |
|
39 TAppServiceInfo::~TAppServiceInfo() |
|
40 { |
|
41 } |
|
42 |
|
43 //Constructor for class TAppServiceInfo |
|
44 TAppServiceInfo::TAppServiceInfo(TUid aUid, |
|
45 std::vector<TDataTypeWithPriority*> aDataTypes) |
|
46 : iUid(aUid), |
|
47 iDataTypes(aDataTypes) |
|
48 { |
|
49 } |
|
50 |
|
51 //Releases the data member |
|
52 void TAppServiceInfo::Release() |
|
53 { |
|
54 |
|
55 if(0 < iDataTypes.size()) |
|
56 iDataTypes.clear(); |
|
57 } |
|
58 |
|
59 /* |
|
60 * Member function of Class TAppServiceInfo to return private member |
|
61 * variable iUid |
|
62 */ |
|
63 TUid TAppServiceInfo::GetUid() |
|
64 { |
|
65 return iUid; |
|
66 } |
|
67 |
|
68 /* |
|
69 * Member function of Class TAppServiceInfo to return private member |
|
70 * variable iDataTypes |
|
71 */ |
|
72 std::vector<TDataTypeWithPriority*> TAppServiceInfo::GetDataType() |
|
73 { |
|
74 return iDataTypes; |
|
75 } |