diff -r 2669f8761a99 -r fbd2e7cec7ef XDMSettingsUI/inc/SettingsData.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/XDMSettingsUI/inc/SettingsData.h Wed Sep 01 12:23:14 2010 +0100 @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2005-2007 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: XDM GS plugin data holding class for XDM setting list +* +*/ + + + + +#ifndef __SettingsData_H__ +#define __SettingsData_H__ + +// INCLUDE FILES +#include +#include + +#include "XDMPlugin.hrh" + + +/** +* CSettingsData data holding class for an XDM set +*/ +class CSettingsData : public CBase + { + public: + + /** + * Default 1st phase factory method. + * Creates an instance of CSettingsData + */ + static CSettingsData* NewL(); + + /** + * Default 1st phase factory method. + * Creates an instance of CSettingsData, leaves it on stack + */ + static CSettingsData* NewLC(); + + /** + * Destructor + */ + virtual ~CSettingsData(); + + /** + * Resets all data to initial values + */ + void Reset(); + + private: + + /** + * 2nd Phase constructor + */ + void ConstructL(); + + /** + * C++ Constructor + */ + CSettingsData(); + + public: + + // Buffer holding the XDM set name + TBuf iSettingName; + + // Buffer holding the XDM set name with localized digits for display + TBuf iSettingNameDisp; + + // Buffer holding the XDM set server address + TBuf iServerAddress; + + // Access point number + TInt32 iAccessPoint; + + // Buffer holding the access point number as a descriptor + TBuf iAccessPointDes; + + // Buffer holding the SIP URL + TBuf iSipURL; + + // Buffer holding the User ID + TBuf iUserID; + + // Buffer holding the password + TBuf iPassword; + + // Buffer holding the access point name + TBuf iAccessPointName; + + // XDM setting, settings id, used to identify in XDM settings API + TInt32 iSettingId; + }; + +#endif // __SettingsData_H__ \ No newline at end of file