diff -r 000000000000 -r dab8a81a92de omads/omadsextensions/adapters/mms/inc/mmsdataproviderdefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omads/omadsextensions/adapters/mms/inc/mmsdataproviderdefs.h Mon Nov 23 14:46:41 2009 +0200 @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Part of SyncML Data Synchronization Plug In Adapter +* +*/ + + +#ifndef __MMSDATAPROVIDERDEFS_H__ +#define __MMSDATAPROVIDERDEFS_H__ + +#include +#include + +// ------------------------------------------------------------------------------------------------ +// Databases +// ------------------------------------------------------------------------------------------------ +// Database name +_LIT( KNSmlDefaultLocalDbName, "MmsSyncLocalDb" ); + +// Resource file for CSmlDataStoreFormat in SIS installation +_LIT(KMmsStoreFormatRsc,"mmsdatastore.rsc"); + +// Must be like below in flash image +_LIT(KMmsStoreFormatRscRom,"z:mmsdatastore.rsc"); + +// ------------------------------------------------------------------------------------------------ +// Constants +// ------------------------------------------------------------------------------------------------ +// max foldername +const TInt KMaxFolderNameLength = 50; + +// Implementation uid +const TUint KMmsDataProviderImplUid = 0x101FB0E9; + +// ------------------------------------------------------------------------------------------------ +// Macros +// ------------------------------------------------------------------------------------------------ +#define SAFEDELETE(x) {if(x) {delete x; x = NULL;}} +#define SAFEDELETEARRAY(x) {if(x) {delete[] x; x = NULL;}} + +#endif // __MMSDATAPROVIDERDEFS_H__