diff -r 000000000000 -r dab8a81a92de omads/omadsextensions/adapters/sms/inc/SmsDataProviderDefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omads/omadsextensions/adapters/sms/inc/SmsDataProviderDefs.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: Constant definitions used by SMS DS Plug-in Adapter +* +*/ + + +#ifndef __SMSDATAPROVIDERDEFS_H__ +#define __SMSDATAPROVIDERDEFS_H__ + + +// ------------------------------------------------------------------------------------------------ +// Databases +// ------------------------------------------------------------------------------------------------ +// Database name +_LIT( KNSmlDefaultLocalDbName, "SmsSyncLocalDb" ); + +// Resource file for CSmlDataStoreFormat + +// The following works with DS plugin added into ROM image +_LIT( KSmsStoreFormatRscRom,"z:smsdatastore.rsc"); + +// The following works with DS plugin installed from SIS +_LIT( KSmsStoreFormatRsc,"smsdatastore.rsc"); + +// ------------------------------------------------------------------------------------------------ +// Constants +// ------------------------------------------------------------------------------------------------ +// max foldername +const TInt KMaxFolderNameLength = 50; + +// Implementation uid +const TUint KSmsDataProviderImplUid = 0x10206B5C; + +// ------------------------------------------------------------------------------------------------ +// Macros +// ------------------------------------------------------------------------------------------------ +#define SAFEDELETE( x ) {delete x; x = NULL;} +#define SAFEDELETEARRAY( x ) {delete[] x; x = NULL;} + +#endif // __SMSDATAPROVIDERDEFS_H__