• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kfile.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 */
00018 #ifndef KFILE_H
00019 #define KFILE_H
00020 
00021 #include <QtCore/QDir>
00022 
00023 #include <kio/kio_export.h>
00024 
00031 class KIO_EXPORT KFile
00032 {
00033     Q_GADGET
00034     Q_FLAGS(KFile::Modes)
00035 public:
00044     enum Mode {
00045         File         = 1,
00046         Directory    = 2,
00047         Files        = 4,
00048         ExistingOnly = 8,
00049         LocalOnly    = 16,
00050         ModeMax      = 65536
00051     };
00052     Q_DECLARE_FLAGS(Modes, Mode)
00053 
00054     enum FileView {
00055         Default         = 0,
00056         Simple          = 1,
00057         Detail          = 2,
00058         SeparateDirs    = 4,
00059         PreviewContents = 8,
00060         PreviewInfo     = 16,
00061         Tree            = 32,
00062         DetailTree      = 64,
00063         FileViewMax     = 65536
00064     };
00065 
00066     enum SelectionMode {
00067         Single      = 1,
00068         Multi       = 2,
00069         Extended    = 4,
00070         NoSelection = 8
00071     };
00072 
00073 
00074     //
00075     // some bittests
00076     //
00077 
00078     // sorting specific
00079 
00080     static bool isSortByName( const QDir::SortFlags& sort );
00081 
00082     static bool isSortBySize( const QDir::SortFlags& sort );
00083 
00084     static bool isSortByDate( const QDir::SortFlags& sort ); 
00085 
00086     static bool isSortByType( const QDir::SortFlags& sort );
00087 
00088     static bool isSortDirsFirst( const QDir::SortFlags& sort );
00089 
00090     static bool isSortCaseInsensitive( const QDir::SortFlags& sort );
00091 
00092 
00093     // view specific
00094     static bool isDefaultView( const FileView& view );
00095 
00096     static bool isSimpleView( const FileView& view );
00097 
00098     static bool isDetailView( const FileView& view ); 
00099 
00100     static bool isSeparateDirs( const FileView& view );
00101 
00102     static bool isPreviewContents( const FileView& view ); 
00103 
00104     static bool isPreviewInfo( const FileView& view );
00105     
00106     static bool isTreeView( const FileView& view );
00107     
00108     static bool isDetailTreeView( const FileView& view );
00109 
00110 private:
00111     KFile(); // forbidden
00112 };
00113 
00114 Q_DECLARE_OPERATORS_FOR_FLAGS(KFile::Modes)
00115 
00116 #endif // KFILE_H

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal