|
1 /* |
|
2 * Copyright (c) 2003 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: Key for sorting CIMPSSAPSettingsListItem's. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TIMPSSAPSETTINGSLISTITEMNAMEKEY_H |
|
19 #define __TIMPSSAPSETTINGSLISTITEMNAMEKEY_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 // CLASS DECLARATION |
|
25 /** |
|
26 * A key for sorting CIMPSSAPSettingsListItem's according to their name. |
|
27 * |
|
28 * @lib IMPSSAPSettingsStore.dll |
|
29 * @since 1.2 |
|
30 */ |
|
31 NONSHARABLE_CLASS( TIMPSSAPSettingsListItemNameKey : public TKeyArrayFix ) |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * C++ constructor. |
|
37 */ |
|
38 TIMPSSAPSettingsListItemNameKey( TBool aAscending = ETrue ); |
|
39 |
|
40 public: //from TKeyArrayFix |
|
41 |
|
42 /** |
|
43 * Compares the keys of two array elements. |
|
44 * Comparison is done based the name value of CIMPSSAPSettingsListItems. |
|
45 * If aAscending is defined in constructor, comparisson is done |
|
46 * ascending, else descending. |
|
47 * @param aLeft Left index to compare. |
|
48 * @param aRight Right indexe to compare. |
|
49 * |
|
50 * @since 1.2 |
|
51 */ |
|
52 TInt Compare( TInt aLeft, TInt aRight ) const; |
|
53 |
|
54 protected: //data |
|
55 |
|
56 TBool iAscending; ///< Sort order, owned |
|
57 |
|
58 }; |
|
59 |
|
60 #endif // __TIMPSSAPSETTINGSLISTITEMNAMEKEY_H |
|
61 |
|
62 |
|
63 // End of File |
|
64 |