[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned
From: Till Adam <adam () kde ! org>
Date: 2009-04-30 12:40:52
Message-ID: 1241095252.522152.8076.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 961596 by tilladam:
Cleanup whitespace.
M +2 -2 CMakeLists.txt
M +4 -4 ktimezoned.h
M +9 -9 ktimezoned_win.cpp
M +5 -5 ktimezoned_win.h
M +8 -8 ktimezonedbase.h
--- branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned/CMakeLists.txt \
#961595:961596 @@ -1,7 +1,7 @@
if (WIN32)
- set(kded_ktimezoned_SRCS ktimezoned_win.cpp)
+ set(kded_ktimezoned_SRCS ktimezoned_win.cpp)
else (WIN32)
- set(kded_ktimezoned_SRCS ktimezoned.cpp)
+ set(kded_ktimezoned_SRCS ktimezoned.cpp)
endif (WIN32)
kde4_add_plugin(kded_ktimezoned ${kded_ktimezoned_SRCS})
--- branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned/ktimezoned.h \
#961595:961596 @@ -43,9 +43,9 @@
Q_SIGNALS:
/** D-Bus signal emitted when the time zone configuration file has changed. \
*/ void configChanged();
- /** D-Bus signal emitted when zone.tab contents have changed.
- * @param zonetab path to zone.tab
- */
+ /** D-Bus signal emitted when zone.tab contents have changed.
+ * @param zonetab path to zone.tab
+ */
private Q_SLOTS:
void zonetab_Changed(const QString& path);
@@ -78,7 +78,7 @@
};
typedef QMap<QString, QString> MD5Map; // zone name, checksum
- /** reimp */
+ /** reimp */
void init(bool restart);
bool findZoneTab(QFile& f);
void readZoneTab(QFile& f);
--- branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned/ktimezoned_win.cpp \
#961595:961596 @@ -57,7 +57,7 @@
{
public:
RegistryWatcherThread(KTimeZoned* parent)
- :QThread(parent),q(parent)
+ :QThread(parent),q(parent)
{
}
@@ -68,15 +68,15 @@
void run()
{
- if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, currentTimeZoneKey, 0, KEY_READ, &key ) == \
ERROR_SUCCESS ) + if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, currentTimeZoneKey, \
0, KEY_READ, &key ) == ERROR_SUCCESS ) {
- while(true)
+ while(true)
{
RegNotifyChangeKeyValue( key, true, REG_NOTIFY_CHANGE_LAST_SET,
- NULL, false /*async, we want it to block*/ );
- q->updateLocalZone();
+ NULL, false /*async, we want it to block*/ \
); + q->updateLocalZone();
}
- }
+ }
}
private:
KTimeZoned* q;
@@ -104,8 +104,8 @@
if (restart)
{
kDebug(1221) << "KTimeZoned::init(restart)";
- delete mRegistryWatcherThread;
- mRegistryWatcherThread = 0;
+ delete mRegistryWatcherThread;
+ mRegistryWatcherThread = 0;
}
KConfig config(QLatin1String("ktimezonedrc"));
@@ -136,7 +136,7 @@
if (mConfigLocalZone != mLocalZone)
{
- kDebug(1221) << "Local timezone is now: " << mLocalZone;
+ kDebug(1221) << "Local timezone is now: " << mLocalZone;
KConfig config(QLatin1String("ktimezonedrc"));
KConfigGroup group(&config, "TimeZones");
mConfigLocalZone = mLocalZone;
--- branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned/ktimezoned_win.h \
#961595:961596 @@ -26,18 +26,18 @@
class KTimeZoned : public KTimeZoneDBase
{
Q_OBJECT
- friend class RegistryWatcherThread;
+ friend class RegistryWatcherThread;
public:
KTimeZoned(QObject* parent, const QList<QVariant>&);
~KTimeZoned();
private:
- /** reimp */
- void init(bool);
- void updateLocalZone();
+ /** reimp */
+ void init(bool);
+ void updateLocalZone();
- RegistryWatcherThread *mRegistryWatcherThread; // thread that watches the \
timezone registry key + RegistryWatcherThread *mRegistryWatcherThread; // \
thread that watches the timezone registry key };
#endif
--- branches/kdepim/enterprise4/kdebase-4.1-branch/runtime/ktimezoned/ktimezonedbase.h \
#961595:961596 @@ -26,10 +26,10 @@
class KTimeZoneDBase : public KDEDModule
{
- Q_OBJECT
+ Q_OBJECT
public:
KTimeZoneDBase(QObject* parent, const QList<QVariant>&)
- :KDEDModule(parent) {}
+ :KDEDModule(parent) {}
virtual ~KTimeZoneDBase() {};
public Q_SLOTS:
@@ -38,18 +38,18 @@
* initialized itself
*/
Q_SCRIPTABLE void initialize(bool reinit)
- {
- // If we reach here, the module has already been constructed and therefore
- // initialized. So only do anything if reinit is true.
- if (reinit)
+ {
+ // If we reach here, the module has already been constructed and \
therefore + // initialized. So only do anything if reinit is true.
+ if (reinit)
init(true);
- }
+ }
Q_SIGNALS:
/** D-Bus signal emitted when the time zone configuration in the registry \
has changed. */ void configChanged();
protected:
- virtual void init(bool) = 0;
+ virtual void init(bool) = 0;
QString mLocalZone; // local system time zone name
QString mConfigLocalZone; // local system time zone name as stored in \
config file
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic