epoc32/include/SyncMLDef.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description: Definition of Constants. This is part of remotemgmt_plat
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
///////////////////////////////////////////////////////////////////////////////
williamr@2
    18
// SyncMLDef.h
williamr@2
    19
//
williamr@2
    20
// v09
williamr@2
    21
//
williamr@2
    22
///////////////////////////////////////////////////////////////////////////////
williamr@2
    23
#ifndef __SYNCMLDEF_H__
williamr@2
    24
#define __SYNCMLDEF_H__
williamr@2
    25
williamr@2
    26
#include <e32std.h>
williamr@2
    27
williamr@2
    28
/**
williamr@2
    29
	Maximum length of a transport property name.
williamr@2
    30
*/
williamr@2
    31
const TInt KSmlMaxTransportPropertyNameLen = 32;
williamr@2
    32
williamr@2
    33
/** Profile ID typedef. */
williamr@2
    34
typedef TInt TSmlProfileId;
williamr@2
    35
/** Task ID typedef. */
williamr@2
    36
typedef TInt TSmlTaskId;
williamr@2
    37
/** Transport ID typedef. */
williamr@2
    38
typedef TInt TSmlTransportId;
williamr@2
    39
/** Connection ID typedef. */
williamr@2
    40
typedef TInt TSmlConnectionId;
williamr@2
    41
/** Data provider ID typedef. */
williamr@2
    42
typedef TInt TSmlDataProviderId;
williamr@2
    43
/** Profile creator ID typedef. */
williamr@2
    44
typedef TInt TSmlCreatorId;
williamr@2
    45
/** Job ID typedef. */
williamr@2
    46
typedef TInt TSmlJobId;
williamr@2
    47
williamr@2
    48
/**
williamr@2
    49
	Invalid (null) identifier.
williamr@2
    50
*/
williamr@2
    51
const TInt KSmlNullId = 0;
williamr@2
    52
williamr@2
    53
/**
williamr@2
    54
	Unused parameter from a session event
williamr@2
    55
*/
williamr@2
    56
const TInt32 KUnusedAdditionalData = -1;
williamr@2
    57
williamr@2
    58
/**
williamr@2
    59
	Setting for action to take as a result of a SyncML push message, (e.g. a server-alerted synchronisation request).
williamr@2
    60
	Note that certain types of push message, (e.g. DevMan Bootstrap), will override this setting.
williamr@2
    61
*/
williamr@2
    62
enum TSmlServerAlertedAction
williamr@2
    63
	{
williamr@2
    64
	/** Allow the push message parser plugin to specify user interaction type. */
williamr@2
    65
	ESmlUseSANRequestedSetting,
williamr@2
    66
	/** Automatically run the synchronisation without user intervention. */
williamr@2
    67
	ESmlEnableSync,
williamr@2
    68
	/** Prevent the synchronisation. */
williamr@2
    69
	ESmlDisableSync,
williamr@2
    70
	/** Inform the user of the synchronisation. */
williamr@2
    71
	ESmlInformSync,
williamr@2
    72
	/** Get confirmation of the synchronisation from the user. */
williamr@2
    73
	ESmlConfirmSync,
williamr@2
    74
	/** Use the global user interaction type (only allowed for the profile setting) */
williamr@2
    75
	ESmlUseGlobalSetting,
williamr@2
    76
	};
williamr@2
    77
williamr@2
    78
/**
williamr@2
    79
	Flags for synchronisation types.
williamr@2
    80
*/
williamr@2
    81
enum TSmlSyncType
williamr@2
    82
	{
williamr@2
    83
	/** Two-way sync.
williamr@2
    84
	
williamr@2
    85
	A normal sync type in which the client and the server exchange information about modified data in these devices. 
williamr@2
    86
	The client sends the modifications first.
williamr@2
    87
	*/
williamr@2
    88
	ESmlTwoWay,
williamr@2
    89
	/** One-way sync from server.
williamr@2
    90
	
williamr@2
    91
	A sync type in which the client gets all modifications from the server, but the client does not send 
williamr@2
    92
	its modifications to the server. */
williamr@2
    93
	ESmlOneWayFromServer,
williamr@2
    94
	/** One-way sync from client.
williamr@2
    95
	
williamr@2
    96
	A sync type in which the client sends its modifications to the server, but the server does not send 
williamr@2
    97
	its modifications back to the client. */
williamr@2
    98
	ESmlOneWayFromClient,
williamr@2
    99
	/** Slow sync.
williamr@2
   100
	
williamr@2
   101
	A form of two-way sync in which the client sends all its data to the server, and the server does 
williamr@2
   102
	the sync analysis for this data and the data in the server. The server may undertake a field by field analysis. */
williamr@2
   103
	ESmlSlowSync,
williamr@2
   104
	/** Refresh sync from server.
williamr@2
   105
	
williamr@2
   106
	A sync type in which the client exports all its data to the server. The server replaces all data in 
williamr@2
   107
	the target database with the data sent by the client. */
williamr@2
   108
	ESmlRefreshFromServer,
williamr@2
   109
	/** Refresh sync from client.
williamr@2
   110
	
williamr@2
   111
	A sync type in which the client exports all its data to the server. The server replaces all data in 
williamr@2
   112
	the target database with the data sent by the client.*/
williamr@2
   113
	ESmlRefreshFromClient,
williamr@2
   114
	};
williamr@2
   115
williamr@2
   116
/**
williamr@2
   117
	Protocol types.
williamr@2
   118
*/
williamr@2
   119
enum TSmlUsageType
williamr@2
   120
	{
williamr@2
   121
	/** Data synchronisation. */
williamr@2
   122
	ESmlDataSync,
williamr@2
   123
	/** Device management. */
williamr@2
   124
	ESmlDevMan,
williamr@2
   125
	};
williamr@2
   126
williamr@2
   127
williamr@2
   128
/**
williamr@2
   129
	Protocol versions.
williamr@2
   130
*/
williamr@2
   131
enum TSmlProtocolVersion
williamr@2
   132
	{
williamr@2
   133
	/** Version 1.1.2 */
williamr@2
   134
	ESmlVersion1_1_2,
williamr@2
   135
	/** Version 1.2 */
williamr@2
   136
	ESmlVersion1_2,
williamr@2
   137
	};
williamr@2
   138
williamr@2
   139
williamr@2
   140
/**
williamr@2
   141
	Transport capabilities.
williamr@2
   142
*/
williamr@2
   143
enum TSmlTransportCap
williamr@2
   144
	{
williamr@2
   145
	/** Transport can listen for incoming connections. */
williamr@2
   146
	ESmlCapCanListen,
williamr@2
   147
	/** Transport can make outgoing connections. */
williamr@2
   148
	ESmlCapCanConnect,
williamr@2
   149
	};
williamr@2
   150
williamr@2
   151
/**
williamr@2
   152
	Flags specifying how background synchronisation results are displayed to the user.
williamr@2
   153
*/
williamr@2
   154
enum TSmlDisplayResult
williamr@2
   155
	{
williamr@2
   156
	/** Do not display results. */
williamr@2
   157
	ESmlDisplayNoResults,
williamr@2
   158
	/** Display all results. */
williamr@2
   159
	ESmlDisplayAllResults,
williamr@2
   160
	/** Display errors only. */
williamr@2
   161
	ESmlDisplayErrorsOnly,
williamr@2
   162
	};
williamr@2
   163
williamr@2
   164
/**
williamr@2
   165
	Flags specifying how background synchronisation progress is displayed to the user.
williamr@2
   166
*/
williamr@2
   167
enum TSmlDisplayProgress
williamr@2
   168
	{
williamr@2
   169
	/** Never display the progress notifier. */
williamr@2
   170
	ESmlDisplayNoProgress,
williamr@2
   171
	/** Display progress notifier if a job is in progress, but only if no clients are observing the progress. */
williamr@2
   172
	ESmlDisplayUnObservedProgress,
williamr@2
   173
	/** Always display the progress notifier when a job is in progress. */
williamr@2
   174
	ESmlDisplayAllProgress,
williamr@2
   175
	};
williamr@2
   176
williamr@2
   177
/**
williamr@2
   178
	Global settings supported by the RSyncMLSettings class.
williamr@2
   179
	@see RSyncMLSettings
williamr@2
   180
*/
williamr@2
   181
enum TSmlGlobalSetting
williamr@2
   182
	{
williamr@2
   183
	/**
williamr@2
   184
		Specifies how users are notified of synchronisations completing.
williamr@2
   185
		Value is one of TSmlDisplayResult.
williamr@2
   186
	*/
williamr@2
   187
	ESmlSettingDisplayBgResult,
williamr@2
   188
	/**
williamr@2
   189
		Specifies whether progress should be displayed in a notifier.
williamr@2
   190
		Value is one of TSmlDisplayProgress.
williamr@2
   191
	*/
williamr@2
   192
	ESmlSettingDisplayBgProgress,
williamr@2
   193
	/**
williamr@2
   194
		Specifies the default action to take in response to a server alert.
williamr@2
   195
		Value is one of TSmlServerAlertedAction.
williamr@2
   196
	*/
williamr@2
   197
	ESmlSettingDefaultSAAction,
williamr@2
   198
	};
williamr@2
   199
williamr@2
   200
#endif // __SYNCMLDEF_H__