diff -r a180113055cb -r 83d6a149c755 example/LastFmAuthApp/AuthApp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/LastFmAuthApp/AuthApp.h Mon Oct 11 21:59:54 2010 +0530 @@ -0,0 +1,54 @@ +/** +* Copyright (c) 2010 Sasken Communication Technologies Ltd. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "{License}" +* which accompanies this distribution, and is available +* at the URL "{LicenseUrl}". +* +* Initial Contributors: +* Narasimhulu Kavadapu, Sasken Communication Technologies Ltd - Initial contribution +* +* Contributors: +* Siddhartha Chandra, Sasken Communication Technologies Ltd +* Description: +* UI Class of Authentication Application +*/ + +#ifndef AUTHAPP_H +#define AUTHAPP_H + +#include +#include "ui_AuthApp.h" +#include "errorCodes.h" +#include "loginDialog.h" +#include "sessionSP.h" + +class AuthApp : public QMainWindow +{ + Q_OBJECT + +public: + AuthApp(QWidget *parent = 0); + ~AuthApp(); +private: + void CheckforLogin(); +private slots: + void on_buttonForget_clicked(); + void on_pushButton_clicked(); + + void sessionDidLogin(QString sessionkey); + void sessionDidLogout(); + + void requestFailedWithFacebookError ( const FBError& aError ); + +protected: + void changeEvent(QEvent *e); + +private: + FBSession* iFBSession; + FBLoginDialog* iLoginDialog; + Ui::AuthAppClass *ui; +}; + +#endif // AUTHAPP_H