example/DemoGUI/ToolBar.h
author cgandhi
Thu, 05 Aug 2010 16:35:33 +0530
changeset 16 b78fa4cdbf2b
permissions -rw-r--r--
pushing the demo application
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     1
#ifndef TOOLBAR_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     2
#define TOOLBAR_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     3
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     4
#include <qobject.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     5
#include <qmainwindow.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     6
#include <qboxlayout.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     7
#include <qtoolbar.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     8
#include <qtoolbutton.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     9
#include <qsignalmapper.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    10
#include "WidgetConstants.h"
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    11
#include <qmenu.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    12
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    13
//FaceBook AuthApp UID
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    14
const TUint32 KFBUid3 = { 0xEFE2FD23 }; 
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    15
const TUint32 KFlickUid3 = { 0xE1D8C7D7 };
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    16
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    17
class ToolBar : public QObject
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    18
{
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    19
    Q_OBJECT
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    20
public:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    21
    ToolBar();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    22
    void GetToolBar(QMainWindow *Mainwindow,QStringList aListOfActions);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    23
    void launchFB();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    24
    void launchFlickr();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    25
    ~ToolBar();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    26
public slots:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    27
    //void post();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    28
    //void reply();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    29
    void exitApp();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    30
    void homeView();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    31
    void msg();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    32
    void call();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    33
    void authApp_Fb();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    34
    void authApp_Flkr();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    35
private:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    36
     QMainWindow *iMainWindow;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    37
     QSignalMapper *signal;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    38
public:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    39
	QMenu* menu;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    40
	//QAction *newAction1;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    41
	//QAction *newAction2;
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    42
};
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    43
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    44
#endif // TOOLBAR_H