example/LastFmAuthApp/AuthApp.h
changeset 26 83d6a149c755
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
       
     1 /**
       
     2 * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "{License}"
       
     6 * which accompanies  this distribution, and is available
       
     7 * at the URL "{LicenseUrl}".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Narasimhulu Kavadapu, Sasken Communication Technologies Ltd - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Siddhartha Chandra, Sasken Communication Technologies Ltd
       
    14 * Description:
       
    15 * UI Class of Authentication Application
       
    16 */
       
    17 
       
    18 #ifndef AUTHAPP_H
       
    19 #define AUTHAPP_H
       
    20 
       
    21 #include <QtGui/QMainWindow>
       
    22 #include "ui_AuthApp.h"
       
    23 #include "errorCodes.h"
       
    24 #include "loginDialog.h"
       
    25 #include "sessionSP.h"
       
    26 
       
    27 class AuthApp : public QMainWindow
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32 	AuthApp(QWidget *parent = 0);
       
    33     ~AuthApp();
       
    34 private:
       
    35 	void CheckforLogin();
       
    36 private slots:
       
    37     void on_buttonForget_clicked();
       
    38     void on_pushButton_clicked();
       
    39 
       
    40     void sessionDidLogin(QString sessionkey);
       
    41     void sessionDidLogout();
       
    42 
       
    43     void requestFailedWithFacebookError ( const FBError& aError );
       
    44 
       
    45 protected:
       
    46     void changeEvent(QEvent *e);
       
    47 
       
    48 private:
       
    49     FBSession*      iFBSession;
       
    50     FBLoginDialog*  iLoginDialog;
       
    51     Ui::AuthAppClass *ui;
       
    52 };
       
    53 
       
    54 #endif // AUTHAPP_H