|
1 /* |
|
2 * Copyright (c) 2006 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: Command context base class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <cvtlogger.h> |
|
20 |
|
21 #include "cvtuicommandmodifybase.h" |
|
22 |
|
23 // ======== LOCAL FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CVtUiCommandModifyBase::CVtUiCommandModifyBase |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CVtUiCommandModifyBase::CVtUiCommandModifyBase( TInt aPriority ) |
|
30 : iPriority( aPriority ) |
|
31 { |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // CVtUiCommandModifyBase::PriorityOrder |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 TLinearOrder< CVtUiCommandModifyBase > CVtUiCommandModifyBase::PriorityOrder() |
|
39 { |
|
40 return TLinearOrder< CVtUiCommandModifyBase >( PriorityOrderFunc ); |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CVtUiCommandModifyBase::PriorityOrderFunc |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 TInt CVtUiCommandModifyBase::PriorityOrderFunc( |
|
48 const CVtUiCommandModifyBase& aM1, const CVtUiCommandModifyBase& aM2 ) |
|
49 { |
|
50 return aM1.iPriority - aM2.iPriority; |
|
51 } |
|
52 |