Permalink
Browse files

Style follows the Coding Standard

  • Loading branch information...
1 parent 0e9f070 commit b461f638d79b4a3c0b920560ceb8f02ae29c831b @kuzmas kuzmas committed Jan 19, 2013
Showing with 183 additions and 183 deletions.
  1. +19 −19 libraries/sysstat/CMakeLists.txt
  2. +16 −16 libraries/sysstat/basestat.cpp
  3. +6 −6 libraries/sysstat/{basestat.hpp → basestat.h}
  4. +11 −11 libraries/sysstat/{basestat_p.hpp → basestat_p.h}
  5. +14 −14 libraries/sysstat/cpustat.cpp
  6. +3 −3 libraries/sysstat/{cpustat.hpp → cpustat.h}
  7. +12 −12 libraries/sysstat/{cpustat_p.hpp → cpustat_p.h}
  8. +4 −4 libraries/sysstat/memstat.cpp
  9. +1 −1 libraries/sysstat/{memstat.hpp → memstat.h}
  10. +4 −4 libraries/sysstat/{memstat_p.hpp → memstat_p.h}
  11. +5 −5 libraries/sysstat/netstat.cpp
  12. +1 −1 libraries/sysstat/{netstat.hpp → netstat.h}
  13. +5 −5 libraries/sysstat/{netstat_p.hpp → netstat_p.h}
  14. 0 libraries/sysstat/{sysstat_global.hpp → sysstat_global.h}
  15. +5 −5 libraries/sysstat/version.cpp
  16. +4 −4 libraries/sysstat/{version.hpp → version.h}
  17. 0 libraries/sysstat/{version_p.hpp → version_p.h}
  18. +4 −4 razorqt-panel/plugin-clock/calendar_utils.cpp
  19. +1 −1 razorqt-panel/plugin-clock/calendar_utils.h
  20. +1 −1 razorqt-panel/plugin-clock/razorclock.cpp
  21. +1 −1 razorqt-panel/plugin-clock/razorclock.h
  22. +1 −1 razorqt-panel/plugin-kbindicator/razorkbindicatorconfiguration.h
  23. +2 −2 razorqt-panel/plugin-kbindicator/razorkbindicatoreventfilter.cpp
  24. +2 −2 razorqt-panel/plugin-kbindicator/razorkbindicatoreventfilter.h
  25. +8 −8 razorqt-panel/plugin-sysstat/razorsysstat.cpp
  26. +5 −5 razorqt-panel/plugin-sysstat/razorsysstat.h
  27. +6 −6 razorqt-panel/plugin-sysstat/razorsysstatcolours.cpp
  28. +7 −7 razorqt-panel/plugin-sysstat/razorsysstatcolours.h
  29. +2 −2 razorqt-panel/plugin-sysstat/razorsysstatconfiguration.cpp
  30. +2 −2 razorqt-panel/plugin-sysstat/razorsysstatconfiguration.h
  31. +5 −5 razorqt-panel/plugin-worldclock/razorworldclock.cpp
  32. +8 −8 razorqt-panel/plugin-worldclock/razorworldclock.h
  33. +6 −6 razorqt-panel/plugin-worldclock/razorworldclockconfiguration.cpp
  34. +6 −6 razorqt-panel/plugin-worldclock/razorworldclockconfiguration.h
  35. +3 −3 razorqt-panel/plugin-worldclock/razorworldclockconfigurationtimezones.cpp
  36. +3 −3 razorqt-panel/plugin-worldclock/razorworldclockconfigurationtimezones.h
@@ -13,20 +13,20 @@ find_package(Qt4 REQUIRED)
set(SYSSTAT_PUBLIC_HDRS
- version.hpp
- sysstat_global.hpp
- basestat.hpp
- cpustat.hpp
- memstat.hpp
- netstat.hpp
+ version.h
+ sysstat_global.h
+ basestat.h
+ cpustat.h
+ memstat.h
+ netstat.h
)
set(SYSSTAT_PRIVATE_HDRS
- version_p.hpp
- basestat_p.hpp
- cpustat_p.hpp
- memstat_p.hpp
- netstat_p.hpp
+ version_p.h
+ basestat_p.h
+ cpustat_p.h
+ memstat_p.h
+ netstat_p.h
)
set(SYSSTAT_SRCS
@@ -38,14 +38,14 @@ set(SYSSTAT_SRCS
)
set(SYSSTAT_MOCS
- basestat.hpp
- cpustat.hpp
- memstat.hpp
- netstat.hpp
- basestat_p.hpp
- cpustat_p.hpp
- memstat_p.hpp
- netstat_p.hpp
+ basestat.h
+ cpustat.h
+ memstat.h
+ netstat.h
+ basestat_p.h
+ cpustat_p.h
+ memstat_p.h
+ netstat_p.h
)
@@ -29,8 +29,8 @@
#include <cstddef>
-#include "basestat.hpp"
-#include "basestat_p.hpp"
+#include "basestat.h"
+#include "basestat_p.h"
namespace SysStat {
@@ -50,21 +50,21 @@ BaseStatPrivate::~BaseStatPrivate()
{
}
-bool BaseStatPrivate::timerIsActive(void) const
+bool BaseStatPrivate::timerIsActive() const
{
return mTimer->isActive();
}
-int BaseStatPrivate::updateInterval(void) const
+int BaseStatPrivate::updateInterval() const
{
return mTimer->interval();
}
-void BaseStatPrivate::intervalChanged(void)
+void BaseStatPrivate::intervalChanged()
{
}
-void BaseStatPrivate::sourceChanged(void)
+void BaseStatPrivate::sourceChanged()
{
}
@@ -81,7 +81,7 @@ void BaseStatPrivate::setUpdateInterval(int msec)
}
}
-void BaseStatPrivate::synchroTimeout(void)
+void BaseStatPrivate::synchroTimeout()
{
QTime now(QTime::currentTime());
int synchro = ((now.minute() * 60 + now.second()) * 1000 + now.msec() ) / mTimer->interval();
@@ -93,12 +93,12 @@ void BaseStatPrivate::synchroTimeout(void)
mLastSynchro = synchro;
}
-void BaseStatPrivate::stopUpdating(void)
+void BaseStatPrivate::stopUpdating()
{
mTimer->stop();
}
-QString BaseStatPrivate::monitoredSource(void) const
+QString BaseStatPrivate::monitoredSource() const
{
return mSource;
}
@@ -109,7 +109,7 @@ void BaseStatPrivate::setMonitoredSource(const QString &Source)
this->sourceChanged();
}
-void BaseStatPrivate::monitorDefaultSource(void)
+void BaseStatPrivate::monitorDefaultSource()
{
mSource = defaultSource();
}
@@ -133,7 +133,7 @@ QString BaseStatPrivate::readAllFile(const char *filename)
return result;
}
-QStringList BaseStatPrivate::sources(void) const
+QStringList BaseStatPrivate::sources() const
{
return mSources;
}
@@ -147,12 +147,12 @@ BaseStat::~BaseStat()
{
}
-QStringList BaseStat::sources(void) const
+QStringList BaseStat::sources() const
{
return baseimpl->sources();
}
-int BaseStat::updateInterval(void) const
+int BaseStat::updateInterval() const
{
return baseimpl->updateInterval();
}
@@ -166,7 +166,7 @@ void BaseStat::setUpdateInterval(int msec)
}
}
-void BaseStat::stopUpdating(void)
+void BaseStat::stopUpdating()
{
if (updateInterval() != 0)
{
@@ -175,7 +175,7 @@ void BaseStat::stopUpdating(void)
}
}
-QString BaseStat::monitoredSource(void) const
+QString BaseStat::monitoredSource() const
{
return baseimpl->monitoredSource();
}
@@ -189,7 +189,7 @@ void BaseStat::setMonitoredSource(const QString &source)
}
}
-void BaseStat::monitorDefaultSource(void)
+void BaseStat::monitorDefaultSource()
{
QString oldSource = monitoredSource();
baseimpl->monitorDefaultSource();
@@ -32,7 +32,7 @@
#include <QtCore/QString>
#include <QtCore/QStringList>
-#include <sysstat/sysstat_global.hpp>
+#include <sysstat/sysstat_global.h>
namespace SysStat {
@@ -47,7 +47,7 @@ class SYSSTATSHARED_EXPORT BaseStat : public QObject
BaseStat(QObject *parent = NULL);
~BaseStat();
- QStringList sources(void) const;
+ QStringList sources() const;
signals:
void updateIntervalChanged(int);
@@ -58,13 +58,13 @@ class SYSSTATSHARED_EXPORT BaseStat : public QObject
Q_PROPERTY(QString monitoredSource READ monitoredSource WRITE setMonitoredSource RESET monitorDefaultSource NOTIFY monitoredSourceChanged)
public slots:
- int updateInterval(void) const;
+ int updateInterval() const;
void setUpdateInterval(int msec);
- void stopUpdating(void);
+ void stopUpdating();
- QString monitoredSource(void) const;
+ QString monitoredSource() const;
void setMonitoredSource(const QString &Source);
- void monitorDefaultSource(void);
+ void monitorDefaultSource();
protected:
BaseStatPrivate* baseimpl;
@@ -34,7 +34,7 @@
#include <QtCore/QTime>
#include <QtCore/QStringList>
-#include "cpustat.hpp"
+#include "cpustat.h"
namespace SysStat {
@@ -47,22 +47,22 @@ class BaseStatPrivate : public QObject
BaseStatPrivate(BaseStat *parent = NULL);
~BaseStatPrivate();
- QStringList sources(void) const;
+ QStringList sources() const;
- bool timerIsActive(void) const;
- int updateInterval(void) const;
+ bool timerIsActive() const;
+ int updateInterval() const;
void setUpdateInterval(int msec);
- void stopUpdating(void);
+ void stopUpdating();
- QString monitoredSource(void) const;
+ QString monitoredSource() const;
void setMonitoredSource(const QString &Source);
- void monitorDefaultSource(void);
+ void monitorDefaultSource();
private slots:
- void synchroTimeout(void);
+ void synchroTimeout();
protected:
- virtual QString defaultSource(void) = 0;
+ virtual QString defaultSource() = 0;
QString readAllFile(const char *filename);
@@ -73,8 +73,8 @@ private slots:
int mLastSynchro;
- virtual void intervalChanged(void);
- virtual void sourceChanged(void);
+ virtual void intervalChanged();
+ virtual void sourceChanged();
};
}
@@ -26,8 +26,8 @@
#include <unistd.h>
-#include "cpustat.hpp"
-#include "cpustat_p.hpp"
+#include "cpustat.h"
+#include "cpustat_p.h"
namespace SysStat {
@@ -58,7 +58,7 @@ void CpuStatPrivate::addSource(const QString &source)
}
}
-void CpuStatPrivate::updateSources(void)
+void CpuStatPrivate::updateSources()
{
mSources.clear();
@@ -103,17 +103,17 @@ CpuStatPrivate::~CpuStatPrivate()
{
}
-void CpuStatPrivate::intervalChanged(void)
+void CpuStatPrivate::intervalChanged()
{
recalculateMinMax();
}
-void CpuStatPrivate::sourceChanged(void)
+void CpuStatPrivate::sourceChanged()
{
recalculateMinMax();
}
-void CpuStatPrivate::recalculateMinMax(void)
+void CpuStatPrivate::recalculateMinMax()
{
int cores = 1;
if (mSource == "cpu")
@@ -123,7 +123,7 @@ void CpuStatPrivate::recalculateMinMax(void)
mIntervalMax = static_cast<float>(mTimer->interval()) / 1000 * static_cast<float>(mUserHz) * static_cast<float>(cores) * 1.25; // +25%
}
-void CpuStatPrivate::timeout(void)
+void CpuStatPrivate::timeout()
{
if ( (mMonitoring == CpuStat::LoadOnly)
|| (mMonitoring == CpuStat::LoadAndFrequency) )
@@ -260,12 +260,12 @@ void CpuStatPrivate::timeout(void)
}
}
-QString CpuStatPrivate::defaultSource(void)
+QString CpuStatPrivate::defaultSource()
{
return "cpu";
}
-CpuStatPrivate::Values::Values(void)
+CpuStatPrivate::Values::Values()
: user(0)
, nice(0)
, system(0)
@@ -275,17 +275,17 @@ CpuStatPrivate::Values::Values(void)
{
}
-void CpuStatPrivate::Values::sum(void)
+void CpuStatPrivate::Values::sum()
{
total = user + nice + system + idle + other;
}
-void CpuStatPrivate::Values::clear(void)
+void CpuStatPrivate::Values::clear()
{
total = user = nice = system = idle = other = 0;
}
-CpuStat::Monitoring CpuStatPrivate::monitoring(void) const
+CpuStat::Monitoring CpuStatPrivate::monitoring() const
{
return mMonitoring;
}
@@ -311,12 +311,12 @@ CpuStat::~CpuStat()
{
}
-void CpuStat::updateSources(void)
+void CpuStat::updateSources()
{
dynamic_cast<CpuStatPrivate*>(impl)->updateSources();
}
-CpuStat::Monitoring CpuStat::monitoring(void) const
+CpuStat::Monitoring CpuStat::monitoring() const
{
return impl->monitoring();
}
@@ -30,7 +30,7 @@
#include <QtCore/QObject>
-#include <sysstat/basestat.hpp>
+#include <sysstat/basestat.h>
namespace SysStat {
@@ -50,7 +50,7 @@ class SYSSTATSHARED_EXPORT CpuStat : public BaseStat
CpuStat(QObject *parent = NULL);
~CpuStat();
- void updateSources(void);
+ void updateSources();
uint minFreq(const QString &source) const;
uint maxFreq(const QString &source) const;
@@ -66,7 +66,7 @@ class SYSSTATSHARED_EXPORT CpuStat : public BaseStat
Q_PROPERTY(Monitoring monitoring READ monitoring WRITE setMonitoring NOTIFY monitoringChanged)
public slots:
- Monitoring monitoring(void) const;
+ Monitoring monitoring() const;
void setMonitoring(Monitoring value);
protected:
Oops, something went wrong.

0 comments on commit b461f63

Please sign in to comment.