diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /kstars/kstars/simclockinterface.h | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/simclockinterface.h')
-rw-r--r-- | kstars/kstars/simclockinterface.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kstars/kstars/simclockinterface.h b/kstars/kstars/simclockinterface.h new file mode 100644 index 00000000..87ebad99 --- /dev/null +++ b/kstars/kstars/simclockinterface.h @@ -0,0 +1,55 @@ +/*************************************************************************** + simclockinterface.h - description + ------------------- + begin : Mon Feb 18 2002 + copyright : (C) 2002 by Mark Hollomon + email : mhh@mindspring.com + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#ifndef KSTARS_SIMCLOCKIF_H_ +#define KSTARS_SIMCLOCKIF_H_ + +#include <dcopobject.h> + +#include "kstarsdatetime.h" + +/**@class SimclockInterface + *DCOP functions for the KSTars simulation clock. + *@author Mark Hollomon + *@version 1.0 + */ + +class SimClockInterface : virtual public DCOPObject { + K_DCOP + + k_dcop: + /**Stop the clock + */ + virtual ASYNC stop() = 0; + + /**Start the clock + */ + virtual ASYNC start() = 0; + + /**Set the clock to the given ExtDateTime value. + *@p newtime the time/date to adopt + */ + virtual ASYNC setUTC(const KStarsDateTime &newtime) = 0; + + /**Set the clock scale (the number of simulation seconds that + *pass per real-time second. + *@p s the new timescale factor + */ + virtual ASYNC setClockScale(float s) = 0; +}; + +#endif |