diff -r 491b3ed49290 -r 65326cf895ed filemanager/src/inc/fmfiletyperecognizer.h --- a/filemanager/src/inc/fmfiletyperecognizer.h Tue Aug 31 15:06:05 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009 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: - * The header file of the file type recognizer - */ - -#ifndef FMFILETYPERECOGNIZER_H -#define FMFILETYPERECOGNIZER_H - -#include "fmcommon.h" -#include -#include -#include -#include - -/*! - \class FmFileTypeRecognizer - \brief The class FmFileTypeRecognizer used to recognize file type by path. - */ -class FmFileTypeRecognizer -{ -public: - enum FileType{ - FileTypeDrive, - FileTypeFolder, - FileTypeImage, - FileTypeVideo, - FileTypeTone, - FileTypePlaylist, - FileTypeText, - FileTypeSisx, - FileTypeJava, - FileTypeFlash, - FileTypeWidget, - FileTypeWebLink, - FileTypeUnKnown - }; - - -public: - FmFileTypeRecognizer(); - virtual ~FmFileTypeRecognizer(); - - /*! - Recognize file type, currently only judge file by its extension name. - */ - FmFileTypeRecognizer::FileType getType( const QString& path ) const ; - -private: - // used to store single extension name, FileType pare. - QMap mFileExtensionMap; -}; - -#endif /* FMFILETYPERECOGNIZER_H */ -