hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.h
branchGCC_SURGE
changeset 10 c348b9772569
parent 8 15f034b8a3b5
child 17 a10844a9914d
equal deleted inserted replaced
4:463f1934e292 10:c348b9772569
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 *  Version     : %version: 1 %
    16 *  Version     : %version: 6 %
    17 */
    17 */
    18 #ifndef CONTENTWIDGET_H
    18 #ifndef CONTENTWIDGET_H
    19 #define CONTENTWIDGET_H
    19 #define CONTENTWIDGET_H
    20 
    20 
    21 #include <hbview.h>
    21 #include <HbView>
    22 #include <QGraphicsWidget>
    22 #include <QGraphicsWidget>
    23 #include <QAbstractItemModel>
    23 #include <QAbstractItemModel>
    24 #include <QtGui>
    24 #include <QtGui>
    25 #include <hbgridviewitem.h>
    25 #include <HbGridViewItem>
    26 
    26 
    27 #include <QtGui>
    27 #include <QtGui>
    28 #include <hbapplication.h>
    28 #include <HbApplication>
    29 #include <hblistview.h>
    29 #include <HbListview>
    30 #include <hbicon.h>
    30 #include <HbIcon>
    31 #include <hblabel.h>
    31 #include <HbLabel>
    32 #include <hbgridview.h>
    32 #include <HbGridView>
    33 #include <hbgridviewitem.h>
    33 #include <HbGridViewItem>
    34 #include <hbmainwindow.h>
    34 #include <HbMainWindow>
    35 #include <hbmenu.h>
    35 #include <HbMenu>
    36 #include <QDirModel>
    36 #include <QDirModel>
    37 
    37 
    38 class QTimer;
    38 class QTimer;
    39 class HbMenu;
    39 class HbMenu;
    40 class HbMainWindow;
    40 class HbMainWindow;
    53 public:
    53 public:
    54     MyWindow();
    54     MyWindow();
    55     ~MyWindow();
    55     ~MyWindow();
    56 
    56 
    57 private slots:
    57 private slots:
    58     void processAction ( HbAction* action );
    58     void processAction( HbAction* action );
    59     void setIndex(int index);
    59     void sortTestTimeout();
    60     void timeout();
    60     void filterTestTimeout();
    61     
    61     
    62 private:
    62 private:
    63     HbMenu *createMainMenu();
    63     HbMenu *createMainMenu();
    64     
    64     
       
    65     void addChangeViewMenu(HbMenu* parent);
       
    66     void addCacheProxyModelMenu(HbMenu* parent);
       
    67     void addDataProviderMenu(HbMenu* parent);
       
    68     
    65 private:
    69 private:
    66     HbAbstractItemView* mView;      
    70     HbWidget* mView;      
    67     HgCacheProxyModel *mModel;
    71     HgCacheProxyModel *mModel;
    68 	
    72 	
    69 	MyDataProvider *mMyDataProvider;
    73 	MyDataProvider *mMyDataProvider;
    70     HbView* mMainView;	
    74     HbView* mMainView;	
    71     int mTestVal;
    75     QTimer *mSortTestTimer;
    72     QTimer *mTimer;
    76     int mSortTestVal;
    73 
    77     
       
    78     QTimer *mFilterTestTimer;
       
    79     int mFilterTestVal;
    74 };
    80 };
    75 
    81 
    76 #endif // CONTENTWIDGET_H
    82 #endif // CONTENTWIDGET_H