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: definition of syncservice constants/exported methods |
|
15 * This is part of remotemgmt_plat. |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SYNCSERVICEPARAMS_H |
|
20 #define SYNCSERVICEPARAMS_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 // CONSTANTS |
|
29 const TUid KUidSyncParameterValue = {0x101F8769}; |
|
30 |
|
31 const TInt KSyncServCmdNone = -1; |
|
32 const TInt KSyncServCmdStartSync = 1; |
|
33 const TInt KSyncServCmdShowProgress = 2; |
|
34 |
|
35 const TInt KSyncServDisabled = 0; |
|
36 const TInt KSyncServEnabled = 1; |
|
37 |
|
38 //_LIT( KDevManServiceName, "101F6DE5_NSmlDMSync" ); |
|
39 _LIT( KDataSyncServiceName, "101F6DE4_NSmlDSSync" ); |
|
40 |
|
41 /** |
|
42 * TSyncParameters |
|
43 * |
|
44 * @lib syncservice.lib |
|
45 * @since Series 60 3.0 |
|
46 */ |
|
47 class TSyncParameters |
|
48 { |
|
49 public: |
|
50 |
|
51 /** |
|
52 * TSyncParameters |
|
53 */ |
|
54 inline TSyncParameters(); |
|
55 |
|
56 /** |
|
57 * TSyncParameters |
|
58 */ |
|
59 inline TSyncParameters( const TSyncParameters& aParams ); |
|
60 |
|
61 /** |
|
62 * ExternalizeL |
|
63 */ |
|
64 inline void ExternalizeL( RWriteStream& aStream ) const; |
|
65 |
|
66 /** |
|
67 * InternalizeL |
|
68 */ |
|
69 inline void InternalizeL( RReadStream& aStream ); |
|
70 |
|
71 public: |
|
72 TInt iCommand; |
|
73 TInt iJobId; |
|
74 TInt iProfileId; |
|
75 TInt iSilent; |
|
76 }; |
|
77 |
|
78 // ---------------------------------------------------------------------------- |
|
79 // TSyncParameters::TSyncParameters |
|
80 // ---------------------------------------------------------------------------- |
|
81 // |
|
82 inline TSyncParameters::TSyncParameters() |
|
83 : iCommand( KSyncServCmdNone ), |
|
84 iJobId( 0 ), |
|
85 iProfileId( 0 ) |
|
86 ,iSilent(-1) |
|
87 {} |
|
88 |
|
89 // ---------------------------------------------------------------------------- |
|
90 // TSyncParameters::TSyncParameters( aParams ) |
|
91 // ---------------------------------------------------------------------------- |
|
92 // |
|
93 inline TSyncParameters::TSyncParameters( const TSyncParameters& aParams ) |
|
94 : iCommand( aParams.iCommand ), |
|
95 iJobId( aParams.iJobId ), |
|
96 iProfileId( aParams.iProfileId ) |
|
97 ,iSilent(aParams.iSilent) |
|
98 {} |
|
99 |
|
100 // ---------------------------------------------------------------------------- |
|
101 // TSyncParameters::ExternalizeL |
|
102 // ---------------------------------------------------------------------------- |
|
103 // |
|
104 inline void TSyncParameters::ExternalizeL( RWriteStream& aStream ) const |
|
105 { |
|
106 aStream.WriteInt32L( iCommand ); |
|
107 aStream.WriteInt32L( iJobId ); |
|
108 aStream.WriteInt32L( iProfileId ); |
|
109 aStream.WriteInt32L( iSilent ); |
|
110 } |
|
111 |
|
112 // ---------------------------------------------------------------------------- |
|
113 // TSyncParameters::InternalizeL |
|
114 // ---------------------------------------------------------------------------- |
|
115 // |
|
116 inline void TSyncParameters::InternalizeL( RReadStream& aStream ) |
|
117 { |
|
118 iCommand = aStream.ReadInt32L(); |
|
119 iJobId = aStream.ReadInt32L(); |
|
120 iProfileId = aStream.ReadInt32L(); |
|
121 iSilent = aStream.ReadInt32L(); |
|
122 } |
|
123 |
|
124 #endif //SYNCSERVICEPARAMS_H |
|
125 |
|
126 // End of File |
|