diff -r 5db69f4c3d06 -r b048e15729d6 filebrowser/ui/inc/fbfolderselectorwrapper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filebrowser/ui/inc/fbfolderselectorwrapper.h Fri Sep 03 17:11:21 2010 +0300 @@ -0,0 +1,71 @@ +/* +* 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 FBFOLDERSELECTORWRAPPER_H_ +#define FBFOLDERSELECTORWRAPPER_H_ + +#include "fbdriveentry.h" +#include "fbfileentry.h" +#include "FBFolderSelector.h" + +#include +#include +#include + +class CEngine; +class SearchAttributes; +class SearchResults; +class FileBrowserView; +class HbProgressDialog; + +class QModelIndex; +class CFileBrowserFolderSelector; +class EngineWrapper; + + +/** + * class that is used for communicating between Symbian and Qt code. + */ +class FbFolderSelectorWrapper : public QObject, public MFolderSelectorUI +{ + Q_OBJECT +public: + FbFolderSelectorWrapper(); + ~FbFolderSelectorWrapper(); + + bool init(); + + QString currentPath() const; + bool isDriveListViewActive() const; + int itemCount() const; + FbDriveEntry getDriveEntry(const int aIndex) const; + FbFileEntry getFileEntry(const int aIndex) const; + + void moveDownToDirectory(int); + void moveUpOneLevel(); + +signals: + void FolderSelectionChanged(); + +public: // From MFolderSelectorUI + virtual void InformFolderSelectionChanged(); + +private: + CFileBrowserFolderSelector *mDestinationFolderSelector; +}; + +#endif // FBFOLDERSELECTORWRAPPER_H_