diff -r 48060abbbeaf -r b3cee849fa46 creator/inc/creator_imps.h --- a/creator/inc/creator_imps.h Thu Aug 19 09:55:38 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/* -* Copyright (c) 2008 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: -* -*/ - - - - -#ifndef __CREATORIMPS_H__ -#define __CREATORIMPS_H__ - -#ifdef __PRESENCE - -#include "creator_model.h" -#include "creator_modulebase.h" - -#include - -#include -#include - - -class CCreatorEngine; -class CIMPSParameters; - - -class CCreatorIMPS : public CBase, public MCreatorModuleBase - { -public: - static CCreatorIMPS* NewL(CCreatorEngine* aEngine); - static CCreatorIMPS* NewLC(CCreatorEngine* aEngine); - ~CCreatorIMPS(); - -private: - CCreatorIMPS(); - void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase - -public: - TBool AskDataFromUserL(TInt aCommand, TInt& aNumberOfEntries); // from MCreatorModuleBase - TInt CreateIMPSServerEntryL(CIMPSParameters *aParameters); - void DeleteAllL(); - void DeleteAllCreatedByCreatorL(); - -private: - CIMPSSAPSettingsStore* iIMPSSAPSettingsStore; - - CIMPSParameters* iParameters; - RArray iEntryIds; // TUint32 CIMPSSAPSettings::Uid() - -public: - }; - - -class CIMPSParameters : public CCreatorModuleBaseParameters - { -public: - HBufC* iServerName; - HBufC* iServerURL; - HBufC* iServerUsername; - HBufC* iServerPassword; - HBufC* iServerAccessPointName; - - void SetRandomNameL(CCreatorEngine& aEngine); - void SetRandomUrlL(CCreatorEngine& aEngine); - void SetRandomUsernameL(CCreatorEngine& aEngine); - void SetRandomPasswordL(CCreatorEngine& aEngine); - void SetDefaultAccessPointL(); - -public: - CIMPSParameters(); - ~CIMPSParameters(); - }; - -#endif //__PRESENCE - -#endif // __CREATORIMPS_H__