src/hbapps/hbthemechanger/themeselectionlist.h
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
--- a/src/hbapps/hbthemechanger/themeselectionlist.h	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbapps/hbthemechanger/themeselectionlist.h	Wed Jun 23 18:33:25 2010 +0300
@@ -42,23 +42,25 @@
 Q_OBJECT
 public:
 
-    ThemeSelectionList();
+    ThemeSelectionList(HbMainWindow *mainWindow);
     ~ThemeSelectionList();
 signals:
     void newThemeSelected(const QString &newthemepath);
 public slots:
     void displayThemes();
     void setChosen(HbListWidgetItem *item);
+    void onLongPressed(HbListWidgetItem* listViewItem, const QPointF& coords);
     void applySelection();
     void updateThemeList(const QString &path);
     void sendThemeName(const QString& name);
+    void cancelTheme();
+    void applyTheme();
 #ifdef THEME_CHANGER_TIMER_LOG
     void processWhenIdle();
     void themeChanged();
 #endif
 
 protected:
-    bool event(QEvent *e);
     void resizeEvent(QResizeEvent* event);
 private:
     static QStringList rootPaths();
@@ -69,6 +71,11 @@
     HbIcon* noMark;
     HbAction *action;
     QList<HbIcon*> thumbnails;
+    HbAction* mOkAction;
+    HbAction* mCancelAction;
+    HbMainWindow *mMainWindow;
+    HbListWidgetItem* previewItem;
+    HbView *previewView;
 
     QFileSystemWatcher *watcher;
     QString iCurrentTheme;