1 /***************************************************************************
2 simclockinterface.h - description
4 begin : Mon Feb 18 2002
5 copyright : (C) 2002 by Mark Hollomon
6 email : mhh@mindspring.com
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef KSTARS_SIMCLOCKIF_H_
19 #define KSTARS_SIMCLOCKIF_H_
21 #include <dcopobject.h>
23 #include "kstarsdatetime.h"
25 /**@class SimclockInterface
26 *DCOP functions for the KSTars simulation clock.
27 *@author Mark Hollomon
31 class SimClockInterface
: virtual public DCOPObject
{
37 virtual ASYNC
stop() = 0;
41 virtual ASYNC
start() = 0;
43 /**Set the clock to the given ExtDateTime value.
44 *@p newtime the time/date to adopt
46 virtual ASYNC
setUTC(const KStarsDateTime
&newtime
) = 0;
48 /**Set the clock scale (the number of simulation seconds that
49 *pass per real-time second.
50 *@p s the new timescale factor
52 virtual ASYNC
setClockScale(float s
) = 0;