Implement more functionality:
[stopish] / src / stopish.h
1 //      stopish.h
2 //
3 //      Copyright 2009 Michael Cronenworth <michael@melchior>
4 //
5 //      This program is free software; you can redistribute it and/or modify
6 //      it under the terms of the GNU General Public License as published by
7 //      the Free Software Foundation; either version 2 of the License, or
8 //      (at your option) any later version.
9 //
10 //      This program is distributed in the hope that it will be useful,
11 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //      GNU General Public License for more details.
14 //
15 //      You should have received a copy of the GNU General Public License
16 //      along with this program; if not, write to the Free Software
17 //      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 //      MA 02110-1301, USA.
19
20
21 #ifndef __STOPISH_H__
22 #define __STOPISH_H__
23
24 #define STOPISH_MODE_START  0
25 #define STOPISH_MODE_PAUSE  1
26 #define STOPISH_MODE_RESUME 2
27
28 // stopish.c
29 gint dbus_callback( const gchar *interface, const gchar *method,
30                         GArray *arguments, gpointer data, osso_rpc_t *retval );
31 int stopish_get_mode( void );
32
33 // timer.c
34 gint stopish_timeout_cb( gpointer data );
35 char *stopish_get_time_string( void );
36 long int stopish_get_time_timer( void );
37 void stopish_set_time_start( long int time );
38 void stopish_timer_resume( void );
39 void stopish_timer_save( void );
40 long int stopish_current_time( void );
41
42 #endif