# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# fileprops.h

    00001 /* This file is part of the KDE libraries
    00002     Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
    00003
    00004     library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation, version 2.
    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., 59 Temple Place - Suite 330,
    00016     Boston, MA 02111-1307, USA.
    00017 */
    00018
    00019 #ifndef KFILEPROPS_H
    00020 #define KFILEPROPS_H
    00021
    00022 #include <qstring.h>
    00023
    00024 #include <kfilemetainfo.h>
    00025
    00026 class FileProps
    00027 {
    00028 public:
    00029     FileProps( const char *argument, const QString& path );
    00030     virtual ~FileProps();
    00031
    00032     bool isValid() const;
    00033
    00034     QStringList supportedGroups() const;
    00035     QStringList availableGroups() const;
    00036     QStringList translatedGroups();
    00037
    00038     QStringList supportedKeys( const QString& group ) const;
    00039     QStringList availableKeys( const QString& group ) const;
    00040     QStringList preferredKeys( const QString& group ) const;
    00041
    00042     QStringList supportedKeys() const { return m_info->supportedKeys(); }
    00043     QStringList preferredKeys() const { return m_info->preferredKeys(); }
    00044
    00045     QString getValue( const QString& group, const QString& key ) const;
    00046     bool setValue( const QString& group,
    00047                    const QString& key, const QString &value );
    00048
    00049     QStringList allValues( const QString& group ) const;
    00050     QStringList preferredValues( const QString& group ) const;
    00051
    00052     const char *argument() const { return m_argument; }
    00053
    00054     bool isReadOnly( const QString& group, const QString& key );
    00055
    00056 private:
    00057     static QStringList createKeyValueList( const KFileMetaInfoGroup&,
    00058                                            const QStringList& );
    00059     bool sync();
    00060
    00061     KFileMetaInfo *m_info;
    00062     const char *m_argument;
    00063     bool m_dirty;
    00064
    00065 };
    00066
    00067 #endif // KFILEPROPS_H

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:12:44 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001