equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: Represents one sync profile |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TNSMLDMSYNCPROFILEITEM_H |
|
21 #define TNSMLDMSYNCPROFILEITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "nsmldmdef.h" |
|
26 |
|
27 /** |
|
28 * TNSmlDMSyncProfileItem |
|
29 * |
|
30 * TNSmlDMSyncProfileItem represents one sync profile. |
|
31 */ |
|
32 NONSHARABLE_CLASS (TNSmlDMSyncProfileItem) |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Name |
|
37 * @param None |
|
38 * @return TDesC |
|
39 */ |
|
40 const TDesC& Name(); |
|
41 |
|
42 /** |
|
43 * SetName |
|
44 * @param aName Profile name |
|
45 * @return None |
|
46 */ |
|
47 void SetName(const TDesC& aName); |
|
48 |
|
49 /** |
|
50 * Id |
|
51 * @param None |
|
52 * @return ID |
|
53 */ |
|
54 TInt Id(); |
|
55 |
|
56 /** |
|
57 * SetId |
|
58 * @param aId Profile id |
|
59 * @return None |
|
60 */ |
|
61 void SetId(TInt aId); |
|
62 |
|
63 public: |
|
64 |
|
65 /** |
|
66 * CompareItem |
|
67 * @param aFirst |
|
68 * @param aSecond |
|
69 * @return |
|
70 */ |
|
71 static TInt CompareItem( const TNSmlDMSyncProfileItem& aFirst, |
|
72 const TNSmlDMSyncProfileItem& aSecond ); |
|
73 |
|
74 public: |
|
75 TBuf<KBufSize> iProfileName; |
|
76 TInt iProfileId; |
|
77 TBool iSynced; |
|
78 TTime iLastSync; |
|
79 TTime iLastSuccessSync; |
|
80 TInt iBearer; |
|
81 TInt iActive; |
|
82 TBool iDefault; |
|
83 TBool iDeleteAllowed; |
|
84 TBool iProfileLocked; |
|
85 TInt iApplicationId; |
|
86 TInt iImplementationId; |
|
87 TInt iContentCount; |
|
88 TInt iMandatoryCheck; |
|
89 }; |
|
90 |
|
91 #endif // TNSMLDMSYNCPROFILEITEM_H |
|
92 |
|
93 // End of File |