filebrowser/ui/inc/searchview.h
branchRCL_3
changeset 20 fad26422216a
parent 19 b3cee849fa46
child 21 f8280f3bfeb7
--- a/filebrowser/ui/inc/searchview.h	Tue Aug 31 15:15:20 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,107 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#ifndef SEARCHVIEW_H
-#define SEARCHVIEW_H
-
-#include <HbView>
-
-#include <QDateTime>
-
-class QStringList;
-
-class EngineWrapper;
-class HbDataForm;
-class HbDataFormModelItem;
-class HbProgressDialog;
-
-/**
-  * Settings class that is used for 
-  */
-class SearchAttributes
-{
-public:
-    QString   mSearchDir;
-    QString   mWildCards;
-    QString   mTextInFile;
-    int       mMinSize;
-    int       mMaxSize;
-    QDate     mMinDate;
-    QDate     mMaxDate;
-    bool      mRecurse;
-};
-
-/**
- * search results class.
- */
-class SearchResults
-{
-public:
-    int mNumberOfFoundFiles;
-    QStringList *mFoundFilesList;
-};
-
-class SearchView : public HbView
-{
-    Q_OBJECT
-
-public:
-    explicit SearchView(EngineWrapper &engineWrapper);
-    ~SearchView();
-    void open(const QString &path);
-
-signals:
-    void finished(bool ok);
-
-private slots:
-    void accept();
-    void reject();
-
-private:
-    void initDataForm();
-    void createToolbar();
-    void loadAttributes();
-    void readFormItems();
-
-    void startFileSearch();
-    void fileSearchResults();
-
-private:
-    /* EngineWrapper */
-    EngineWrapper &mEngineWrapper;  
-
-    /* Search attributes */
-    SearchAttributes mAttributes;    
-    /* Search results */
-    SearchResults mResults;
-
-    HbDataForm *mForm;
-    HbDataFormModelItem *mSearchFileNameItem;
-    HbDataFormModelItem *mWildCardItem;
-    HbDataFormModelItem *mHasString;
-    HbDataFormModelItem *mRecurse;
-    HbDataFormModelItem *mMinSize;
-    HbDataFormModelItem *mMaxSize;
-    HbDataFormModelItem *mMinDate;
-    HbDataFormModelItem *mMaxDate;
-
-    QString mPath;
-
-    HbProgressDialog *mProgressDialog;
-};
-
-#endif // SEARCHVIEW_H