]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/mountpointobserver.h
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / statusbar / mountpointobserver.h
index 30d5f8f7d426c013a7e5cdc07c3fb600b3c67427..4d1362cdb8bc0a9bcffa444fe5fccf6a5859e839 100644 (file)
@@ -40,8 +40,10 @@ class MountPointObserver : public QObject
 {
     Q_OBJECT
 
-    explicit MountPointObserver(const QUrl& url, QObject* parent = nullptr);
-    ~MountPointObserver() override {}
+    explicit MountPointObserver(const QUrl &url, QObject *parent = nullptr);
+    ~MountPointObserver() override
+    {
+    }
 
 public:
     /**
@@ -49,7 +51,10 @@ public:
      * internal reference count is increased then. When the observer is not needed any more,
      * deref() should be called, which decreases the reference count again.
      */
-    void ref() { ++m_referenceCount; }
+    void ref()
+    {
+        ++m_referenceCount;
+    }
 
     /**
      * This function can be used to indicate that the caller does not need this MountPointObserver
@@ -66,23 +71,23 @@ public:
      * Returns a MountPointObserver for the given \a url. If the caller intends to continue using
      * the returned object, it must call its ref() method.
      */
-    static MountPointObserver* observerForUrl(const QUrl& url);
+    static MountPointObserver *observerForUrl(const QUrl &url);
 
-signals:
+Q_SIGNALS:
     /**
      * This signal is emitted when the size has been retrieved.
      */
     void spaceInfoChanged(quint64 size, quint64 available);
 
-public slots:
+public Q_SLOTS:
     /**
      * If this slot is invoked, MountPointObserver starts a new driveSize job
      * to get the drive's size.
      */
     void update();
 
-private slots:
-    void freeSpaceResult(KIO::Job* job, KIO::filesize_t size, KIO::filesize_t available);
+private Q_SLOTS:
+    void freeSpaceResult(KJob *job);
 
 private:
     const QUrl m_url;