┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-01 20:01:51 +0000
committerPeter Penz <[email protected]>2009-08-01 20:01:51 +0000
commit99eacd9f56acf4ad21994508ee824b1ce1594be1 (patch)
treed1cd73d8073c511ec56095cab664e3bf24c2a99a /src/statusbarspaceinfo.h
parent67de9286a05b14e8d2611a2acb359b39c86eab3c (diff)
move statusbar code into the directory "statusbar"
svn path=/trunk/KDE/kdebase/apps/; revision=1005704
Diffstat (limited to 'src/statusbarspaceinfo.h')
-rw-r--r--src/statusbarspaceinfo.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h
deleted file mode 100644
index 9744548ca..000000000
--- a/src/statusbarspaceinfo.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2006 by Peter Penz ([email protected]) and *
- * and Patrice Tremblay *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * 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 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 STATUSBARSPACEINFO_H
-#define STATUSBARSPACEINFO_H
-
-#include <kurl.h>
-
-#include <QColor>
-#include <QKeyEvent>
-#include <QString>
-
-#include <kcapacitybar.h>
-
-class QHideEvent;
-class QShowEvent;
-
-/**
- * @short Shows the available space for the volume represented
- * by the given URL as part of the status bar.
- */
-class StatusBarSpaceInfo : public KCapacityBar
-{
- Q_OBJECT
-
-public:
- explicit StatusBarSpaceInfo(QWidget* parent);
- virtual ~StatusBarSpaceInfo();
-
- void setUrl(const KUrl& url);
- const KUrl& url() const;
-
-protected:
- void showEvent(QShowEvent* event);
- void hideEvent(QHideEvent* event);
-
-private slots:
- /** Refreshes the space information for the current set URL. */
- void refresh();
-
-private:
- quint64 m_kBSize;
- KUrl m_url;
- QTimer* m_timer;
-};
-
-inline const KUrl& StatusBarSpaceInfo::url() const
-{
- return m_url;
-}
-
-#endif