diff --git a/dataengines/soliddevice/soliddeviceengine.h b/dataengines/soliddevice/soliddeviceengine.h index ef9ffea2a..353173bda 100644 --- a/dataengines/soliddevice/soliddeviceengine.h +++ b/dataengines/soliddevice/soliddeviceengine.h @@ -1,102 +1,102 @@ /* * Copyright (C) 2007 Christopher Blauvelt * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License version 2 as * published by the Free Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * * You should have received a copy of the GNU Library General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SOLIDDEVICEENGINE_H #define SOLIDDEVICEENGINE_H #include #include #include #include #include #include #include #include #include #include #include #include "devicesignalmapmanager.h" #include "devicesignalmapper.h" #include "hddtemp.h" #include enum State { Idle = 0, Mounting = 1, Unmounting = 2 }; enum OperationResult { Working = 0, Successful = 1, Unsuccessful =2 }; /** * This class evaluates the basic expressions given in the interface. */ class SolidDeviceEngine : public Plasma::DataEngine { Q_OBJECT friend class SolidDeviceService; public: SolidDeviceEngine( QObject* parent, const QVariantList& args); ~SolidDeviceEngine() override; Plasma::Service *serviceForSource (const QString& source) override; protected: bool sourceRequestEvent(const QString &name) override; bool updateSourceEvent(const QString& source) override; private: bool populateDeviceData(const QString &name); bool updateStorageSpace(const QString &udi); bool updateHardDiskTemperature(const QString &udi); bool updateEmblems(const QString &udi); bool updateInUse(const QString &udi); bool forceUpdateAccessibility(const QString &udi); void listenForNewDevices(); //predicate in string form, list of devices by udi QMap m_predicatemap; //udi, corresponding device QMap m_devicemap; //udi, corresponding encrypted container udi; QMap m_encryptedContainerMap; - //path, corresponding timer + //path, for pending file system free space jobs QSet m_paths; DeviceSignalMapManager *m_signalmanager; HddTemp *m_temperature; Solid::DeviceNotifier *m_notifier; private Q_SLOTS: void deviceAdded(const QString &udi); void deviceRemoved(const QString &udi); void deviceChanged(const QString& udi, const QString &property, const QVariant &value); void sourceWasRemoved(const QString &source); void setMountingState(const QString &udi); void setUnmountingState(const QString &udi); void setIdleState(Solid::ErrorType error, QVariant errorData, const QString &udi); void deviceChanged(const QMap & props); }; #endif