syncmlfw/ds/syncagent/inc/NsmlDSContentItem.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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:  Database (content) specific data encapsulation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __NSMLDSCONTENTITEM_H__
       
    20 #define __NSMLDSCONTENTITEM_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <SyncMLHistory.h>
       
    25 #include <SyncMLDataFilter.h>
       
    26 #include "NSmlDSAgent.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CNSmlURI;
       
    30 class CNSmlDSLUIDBuffer;
       
    31 class CNSmlDSAgentLog;
       
    32 class CNSmlDSMapContainer;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * Class that encapsulates content specific data.
       
    38 *
       
    39 * @lib nsmldsagent.lib
       
    40 */
       
    41 class CNSmlDSContentItem : public CBase
       
    42     {
       
    43     public: // constructors and destructor.
       
    44         /**
       
    45         * Standard C++ constructor.
       
    46         */
       
    47         CNSmlDSContentItem();
       
    48 		
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CNSmlDSContentItem();
       
    53 		
       
    54     public: // data
       
    55         // data store name
       
    56         HBufC* iStoreName;
       
    57         // local database URI
       
    58         CNSmlURI* iLocalDatabase;
       
    59         // remote database URI
       
    60         CNSmlURI* iRemoteDatabase;
       
    61         // datastore UID
       
    62         TSmlDataProviderId iImplementationUID;
       
    63         // ETrue if the store is opened
       
    64         TBool iStoreOpened;
       
    65         // AgentLog instance
       
    66         CNSmlDSAgentLog* iAgentLog;
       
    67         // used sync type
       
    68         HBufC8* iSyncType;  //RD_SUSPEND_RESUME
       
    69         //Stores the SyncType proposed by Client for a Sync session
       
    70         HBufC8* iClientSyncType; //RD_SUSPEND_RESUME
       
    71         //ETrue if the Resume session rejected by server
       
    72         TBool iRefreshRequired;
       
    73         //Set to ETrue if the session is resumed for a content
       
    74         TBool iSessionResumed;
       
    75         // used server id
       
    76         HBufC* iServerId;
       
    77         // local UID buffer
       
    78         CNSmlDSLUIDBuffer* iLUIDBuffer;
       
    79         // buffer for map items
       
    80         CNSmlDSMapContainer* iMapContainer;
       
    81         // history log task info entry
       
    82         CSyncMLHistoryJob::TTaskInfo* iTaskInfo;
       
    83         // ETrue if current datastore is interrupted
       
    84         TBool iInterrupted;
       
    85         // ETrue if interrupted immediately
       
    86         TBool iImmediatelyInterruption;
       
    87         // ETrue if there is status error code from server
       
    88         TBool iStatusErrorInSyncLog;
       
    89         // interrupted before sync session started
       
    90         TBool iInterruptedBeforeSync;
       
    91         // ETrue if waiting for initialization alert
       
    92         TBool iWaitingInitAlert;
       
    93         // batch mode flag
       
    94         TBool iBatchModeOn;
       
    95         // transaction mode flag
       
    96         TBool iAtomicModeOn;
       
    97         // number of warnings
       
    98         TInt iWarnings;
       
    99         // task id
       
   100         TInt iTaskId;
       
   101         // synchronization status
       
   102         CNSmlDSAgent::TNSmlAgentSyncStatus iSyncStatus;
       
   103         // ETrue if client item count has been asked
       
   104         TBool iClientItemCountAsked;
       
   105         // ETrue if server item count has been asked
       
   106         TBool iServerItemCountAsked;
       
   107         // number of items from server
       
   108         TInt iServerItemCount;
       
   109         // server's maximum object size
       
   110         TInt iMaxObjSizeInServer;
       
   111         // ETrue if datastore is alerted by the server
       
   112         TBool iServerAlerted;
       
   113         // array of used data filters
       
   114         RPointerArray<CSyncMLFilter> iFilters;
       
   115         // filter match type
       
   116         TSyncMLFilterMatchType iFilterMatchType;
       
   117 	};
       
   118 
       
   119 #endif // __NSMLDSCONTENTITEM_H__
       
   120 
       
   121 // End of File