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

Engines

filebrowserengine.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright (C) 2007 Ivan Cukic <ivan.cukic+kde@gmail.com>
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License either version 2, or
00006  *   (at your option) any later version as published by the Free Software
00007  *   Foundation.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details
00013  *
00014  *   You should have received a copy of the GNU General Public
00015  *   License along with this program; if not, write to the
00016  *   Free Software Foundation, Inc.,
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  */
00019 
00020 #ifndef FILEBROWSERENGINE_H
00021 #define FILEBROWSERENGINE_H
00022 
00023 #include <Plasma/DataEngine>
00024 #include <QMap>
00025 
00026 class KDirWatch;
00027 
00031 class FileBrowserEngine : public Plasma::DataEngine
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     FileBrowserEngine( QObject* parent, const QVariantList& args );
00037     ~FileBrowserEngine();
00038 
00039 protected:
00040     bool sourceRequestEvent(const QString &path);
00041     void init();
00042 
00043 protected slots:
00044     void dirDirty (const QString &path);
00045     void dirCreated(const QString &path);
00046     void dirDeleted(const QString &path);
00047 
00048 private:
00049     enum EventType {INIT, DIRTY, CREATED, DELETED};
00050     enum ObjectType {NOTHING, FILE, DIRECTORY};
00051 
00052     KDirWatch * m_dirWatch;
00053     void updateData(const QString &path, EventType event);
00054     void clearData(const QString &path);
00055 
00056     //QMap < QString, QStringList > m_regiteredListeners;
00057 };
00058 
00059 K_EXPORT_PLASMA_DATAENGINE(filebrowser, FileBrowserEngine)
00060 
00061 #endif

Engines

Skip menu "Engines"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference 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