Add countdown functionality with same modes as the
[stopish] / src / stopish.h
index 1b87d87..d5d378c 100644 (file)
 
 #include <libosso.h>
 
+#define STOPISH_VERSION_NUM 0.9.3
+#define STOPISH_VERSION_STR "0.9.3"
+
 #define STOPISH_MODE_START  0
 #define STOPISH_MODE_PAUSE  1
 #define STOPISH_MODE_RESUME 2
 
+#define STOPISH_TYPE_STOPWATCH 0
+#define STOPISH_TYPE_COUNTDOWN 1
+
 #define STOPISH_PORTRAIT  0
 #define STOPISH_LANDSCAPE 1
 
 // stopish.c
 gint dbus_callback( const gchar *interface, const gchar *method,
                        GArray *arguments, gpointer data, osso_rpc_t *retval );
+void stopish_about_cb( GtkButton* button, gpointer data );
 int stopish_get_mode( void );
+int stopish_get_type( void );
 int stopish_get_orientation( void );
 void stopish_set_mode( int newMode );
+void stopish_set_type( int newType );
+gboolean stopish_focus_in_cb( GtkWidget *widget, GdkEventFocus *event,
+                               gpointer data );
+gboolean stopish_focus_out_cb( GtkWidget *widget, GdkEventFocus *event,
+                               gpointer data );
+
+// stopish-countdown.c
+void stopish_countdown_new( void );
+void stopish_countdown_label_timer_landscape( void );
+void stopish_countdown_label_timer_portrait( void );
 
 // stopish-stopwatch.c
 GtkWindow *stopish_stopwatch_new( void );
+void stopish_stopwatch_reset( void );
 void stopish_stopwatch_perf_timer_hour( GtkRadioButton* radio, GtkLabel *label );
 void stopish_stopwatch_perf_timer_minute( GtkRadioButton* radio, GtkLabel *label );
 void stopish_stopwatch_label_timer_landscape( void );