|
1 /* |
|
2 * Copyright (c) 2006-2010 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 * Implementation of bearer priority structure. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CMMBEARERPRIORITY_H_ |
|
21 #define CMMBEARERPRIORITY_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 NONSHARABLE_CLASS( CCmmBearerPriority ) : public CBase |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * Two phased constuction. |
|
31 */ |
|
32 static CCmmBearerPriority* NewL( |
|
33 const TDesC& aServiceType, |
|
34 const TUint& aPriority, |
|
35 const TUint& aUiPriority ); |
|
36 |
|
37 /** |
|
38 * Two phased constuction. |
|
39 */ |
|
40 static CCmmBearerPriority* NewLC( |
|
41 const TDesC& aServiceType, |
|
42 const TUint& aPriority, |
|
43 const TUint& aUiPriority ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CCmmBearerPriority(); |
|
49 |
|
50 private: |
|
51 /** |
|
52 * Constructor. |
|
53 */ |
|
54 CCmmBearerPriority( const TUint& aPriority, const TUint& aUiPriority ); |
|
55 |
|
56 /** |
|
57 * 2nd phase constructor. |
|
58 */ |
|
59 void ConstructL( const TDesC& aServiceType ); |
|
60 |
|
61 public: |
|
62 /** |
|
63 * Get the service type. |
|
64 */ |
|
65 HBufC* ServiceType() const; |
|
66 |
|
67 /** |
|
68 * Get the priority. |
|
69 */ |
|
70 TUint Priority() const; |
|
71 |
|
72 /** |
|
73 * Get the UI priority. |
|
74 */ |
|
75 TUint UiPriority() const; |
|
76 |
|
77 private: |
|
78 HBufC* iServiceType; // Owned. |
|
79 TUint iPriority; |
|
80 TUint iUiPriority; |
|
81 }; |
|
82 |
|
83 #endif // CMMBEARERPRIORITY_H_ |
|
84 |
|
85 // End of file |