diff -r d9ec2b8c6bad -r 2fbd1d709fe7 wlanutilities/wlanlogin/wlanloginapp/inc/wlanloginservice.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanutilities/wlanlogin/wlanloginapp/inc/wlanloginservice.h Tue Jul 06 15:29:22 2010 +0300 @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2010 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: +* Wlan login QtHighway Service. +*/ + +#ifndef WLANLOGINSERVICE_H +#define WLANLOGINSERVICE_H + +// System includes +#include +#include +// User includes + +// Forward declarations + +// External data types + +// Constants + +// Class declaration +class WlanLoginService: public XQServiceProvider +{ + Q_OBJECT + +public: + // Data types + + /*! + Enumeration for WLAN Login application service request return values + */ + enum WlanLoginStatus { + WlanLoginStatusNone = 0, //!< No status + WlanLoginStatusCancel, //!< User cancel + WlanLoginStatusNext, //!< Proceed to next phase + WlanLoginStatusConnectionDropped, //!< WLAN connection dropped during login + WlanLoginStatusFailed //!< Login process failed + }; + + explicit WlanLoginService(QObject *parent = 0); + ~WlanLoginService(); + +signals: + + void startLogin(int iapId, int netId, QUrl url); + void stopLogin(); + +public slots: + + void start(int iapId, int netId, QUrl url); + void stop(); + void completeServiceRequest(int status); + +private: + + QVariant mReturnValue; //!< Return value deliverd to back to entry + int mAsyncRequestIndex; //!< Service request ID +}; + +#endif //WLANLOGINSERVICE_H