add more spacing
[personal-kdebase.git] / workspace / plasma / dataengines / places / placesengine.h
blobe6368686ccd75ac7531cf5d86ce94adc030ee516
1 /*
2 * Copyright (C) 2008 Alex Merry <alex.merry@kdemail.net>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License version 2 as
6 * published by the Free Software Foundation
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU Library General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef PLACESENGINE_H
20 #define PLACESENGINE_H
22 #include <Plasma/DataEngine>
24 #include <kfileplacesmodel.h>
26 class PlacesEngine : public Plasma::DataEngine
28 Q_OBJECT
30 public:
31 PlacesEngine(QObject* parent, const QVariantList& args);
32 ~PlacesEngine();
34 private Q_SLOTS:
35 // KFilePlacesModel
36 void modelReset();
37 void placesAdded(const QModelIndex& parent, int start, int end);
38 void placesRemoved(const QModelIndex& parent, int start, int end);
39 void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
41 private:
42 void sendData(int start, int end);
43 void sendAllData();
45 KFilePlacesModel m_placesModel;
49 #endif // PLACESENGINE_H