| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kautomount.h

    00001 /* This file is part of the KDE libraries
    00002    Copyright (C) 2000 David Faure <faure@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., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, USA.
    00017 */
    00018 #ifndef __auto_mount_h__
    00019 #define __auto_mount_h__
    00020
    00021 #include <qobject.h>
    00022 #include <qstring.h>
    00023
    00024 namespace KIO {
    00025 class Job;
    00026 }
    00027
    00036 class KAutoMount : public QObject
    00037 {
    00038   Q_OBJECT
    00039   friend class gcc_gives_a_warning_without_this;
    00040 public:
    00052   KAutoMount( bool readonly, const QString& format, const QString& device, const QString& mountpoint,
    00053               const QString & desktopFile, bool show_filemanager_window = true );
    00054
    00055 signals:
    00057   void finished();
    00059   void error();
    00060
    00061 protected slots:
    00062   void slotResult( KIO::Job * );
    00063
    00064 protected:
    00065   QString m_strDevice;
    00066   bool m_bShowFilemanagerWindow;
    00067   QString m_desktopFile;
    00068 private:
    00070   ~KAutoMount() {}
    00071   class KAutoMountPrivate* d;
    00072 };
    00073
    00081 class KAutoUnmount : public QObject
    00082 {
    00083   Q_OBJECT
    00084   friend class gcc_gives_a_warning_without_this;
    00085 public:
    00092   KAutoUnmount( const QString & mountpoint, const QString & desktopFile );
    00093
    00094 signals:
    00096   void finished();
    00098   void error();
    00099
    00100 protected slots:
    00101   void slotResult( KIO::Job * );
    00102 private:
    00103   QString m_desktopFile;
    00104   QString m_mountpoint;
    00105 private:
    00107   ~KAutoUnmount() {}
    00108   class KAutoUnmountPrivate* d;
    00109 };
    00110
    00111 #endif

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:13:07 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001