51
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 |
*/
|
|
17 |
|
|
18 |
#ifndef FBFOLDERSELECTORWRAPPER_H_
|
|
19 |
#define FBFOLDERSELECTORWRAPPER_H_
|
|
20 |
|
|
21 |
#include "fbdriveentry.h"
|
|
22 |
#include "fbfileentry.h"
|
|
23 |
#include "FBFolderSelector.h"
|
|
24 |
|
|
25 |
#include <QString>
|
|
26 |
#include <QStringList>
|
|
27 |
#include <QModelIndexList>
|
|
28 |
|
|
29 |
class CEngine;
|
|
30 |
class SearchAttributes;
|
|
31 |
class SearchResults;
|
|
32 |
class FileBrowserView;
|
|
33 |
class HbProgressDialog;
|
|
34 |
|
|
35 |
class QModelIndex;
|
|
36 |
class CFileBrowserFolderSelector;
|
|
37 |
class EngineWrapper;
|
|
38 |
|
|
39 |
|
|
40 |
/**
|
|
41 |
* class that is used for communicating between Symbian and Qt code.
|
|
42 |
*/
|
|
43 |
class FbFolderSelectorWrapper : public QObject, public MFolderSelectorUI
|
|
44 |
{
|
|
45 |
Q_OBJECT
|
|
46 |
public:
|
|
47 |
FbFolderSelectorWrapper();
|
|
48 |
~FbFolderSelectorWrapper();
|
|
49 |
|
|
50 |
bool init();
|
|
51 |
|
|
52 |
QString currentPath() const;
|
|
53 |
bool isDriveListViewActive() const;
|
|
54 |
int itemCount() const;
|
|
55 |
FbDriveEntry getDriveEntry(const int aIndex) const;
|
|
56 |
FbFileEntry getFileEntry(const int aIndex) const;
|
|
57 |
|
|
58 |
void moveDownToDirectory(int);
|
|
59 |
void moveUpOneLevel();
|
|
60 |
|
|
61 |
signals:
|
|
62 |
void FolderSelectionChanged();
|
|
63 |
|
|
64 |
public: // From MFolderSelectorUI
|
|
65 |
virtual void InformFolderSelectionChanged();
|
|
66 |
|
|
67 |
private:
|
|
68 |
CFileBrowserFolderSelector *mDestinationFolderSelector;
|
|
69 |
};
|
|
70 |
|
|
71 |
#endif // FBFOLDERSELECTORWRAPPER_H_
|