hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.h
changeset 1 e48454f237ca
child 3 c863538fcbb6
equal deleted inserted replaced
0:89c329efa980 1:e48454f237ca
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 *  Version     : %version: 1 %
       
    17 */
       
    18 #ifndef CONTENTWIDGET_H
       
    19 #define CONTENTWIDGET_H
       
    20 
       
    21 #include <hbview.h>
       
    22 #include <QGraphicsWidget>
       
    23 #include <QAbstractItemModel>
       
    24 #include <QtGui>
       
    25 #include <hbgridviewitem.h>
       
    26 
       
    27 #include <QtGui>
       
    28 #include <hbapplication.h>
       
    29 #include <hblistview.h>
       
    30 #include <hbicon.h>
       
    31 #include <hblabel.h>
       
    32 #include <hbgridview.h>
       
    33 #include <hbgridviewitem.h>
       
    34 #include <hbmainwindow.h>
       
    35 #include <hbmenu.h>
       
    36 #include <QDirModel>
       
    37 
       
    38 class QTimer;
       
    39 class HbMenu;
       
    40 class HbMainWindow;
       
    41 class HbGridView;
       
    42 class HbAction;
       
    43 class HbMenuItem;
       
    44 class QFileSystemWatcher;
       
    45 class HgCacheProxyModel;
       
    46 class HbSlider;
       
    47 class MyDataProvider;
       
    48 
       
    49 class MyWindow : public HbMainWindow
       
    50 {
       
    51     Q_OBJECT
       
    52 
       
    53 public:
       
    54     MyWindow();
       
    55     ~MyWindow();
       
    56 
       
    57 private slots:
       
    58     void processAction ( HbAction* action );
       
    59     void setIndex(int index);
       
    60     void timeout();
       
    61     
       
    62 private:
       
    63     HbMenu *createMainMenu();
       
    64     
       
    65 private:
       
    66     HbAbstractItemView* mView;      
       
    67     HgCacheProxyModel *mModel;
       
    68 	
       
    69 	MyDataProvider *mMyDataProvider;
       
    70     HbView* mMainView;	
       
    71     int mTestVal;
       
    72     QTimer *mTimer;
       
    73 
       
    74 };
       
    75 
       
    76 #endif // CONTENTWIDGET_H