diff -r 4af31167ea77 -r 13d7c31c74e0 dcmofw/dcmoserver/inc/amsmlhelper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dcmofw/dcmoserver/inc/amsmlhelper.h Thu Aug 19 10:44:50 2010 +0300 @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2000 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: Implementation of applicationmanagement components + * + */ + +#ifndef __ABMSMLHELPER_H__ +#define __ABMSMLHELPER_H__ + +#include +#include +#include +#include + +class SmlHelper + { +public: + + // NOTE: this enum must match with property array described in + // SyncML_Sync_Agent_Client_API_Specification.doc. + enum TNSmlSyncTransportProperties + { + EPropertyIntenetAccessPoint = 0, + EPropertyHttpUsed = 5, + EPropertyHttpUserName = 6, + EPropertyHttpPassword = 7 + }; + + /** + * Fetch the default IAP used by the currently active DM profile + * @param aDefaultIAP on successfull return contains the default IAP number + */ + + static void GetDefaultIAPFromDMProfileL(TInt& aDefaultIAP); + + static void GetConnectionPropertyNameL(RSyncMLSession& aSyncSession, + TDes8& aText, TInt aPropertyPos); + + static TInt StrToInt(const TDesC& aText, TInt& aNum); + }; + +#endif + +// End of File