~ubuntu-branches/ubuntu/intrepid/osmo/intrepid-proposed

« back to all changes in this revision

Viewing changes to src/tasks.h

  • Committer: Bazaar Package Importer
  • Author(s): Eike Nicklas
  • Date: 2008-02-09 12:49:42 UTC
  • Revision ID: james.westby@ubuntu.com-20080209124942-7f8x8oro11pzkiws
Tags: upstream-0.2.0
ImportĀ upstreamĀ versionĀ 0.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 * Osmo - a handy personal organizer
 
4
 *
 
5
 * Copyright (C) 2007 Tomasz Maka <pasp@users.sourceforge.net>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef _TASKS_H
 
23
#define _TASKS_H
 
24
 
 
25
#include "gui.h"
 
26
 
 
27
#define TASKS_NAME                  "osmo_tasks"
 
28
#define TASKS_ENTRIES_NAME          "tasks_entries"
 
29
#define TASKS_CATEGORY_ENTRIES_NAME "category_entries"
 
30
#define TASKS_ENTRIES_FILENAME      "tasks_entries.xml"
 
31
 
 
32
#define MAX_SUMMARY_SIZE            512     /* max summary string size */
 
33
#define MAX_DATE_SIZE               12      /* max data string size */
 
34
 
 
35
void    gui_create_tasks                        (GUI *appGUI);
 
36
void    update_tasks_number                     (GUI *appGUI);
 
37
gint    get_priority_index                      (gchar *text);
 
38
gchar*  get_priority_text                       (gint index);
 
39
void    show_tasks_desc_panel                   (gboolean enable, GUI *appGUI);
 
40
void    tasks_fill_fields                       (GtkWidget *due_date_entry, GtkWidget *summary_entry, GtkWidget *desc_entry, GUI *appGUI);
 
41
void    tasks_select_first_position_in_list     (GUI *appGUI);
 
42
void    apply_task_attributes                   (GUI *appGUI);
 
43
void    refresh_due_dates                       (GUI *appGUI);
 
44
void    add_item_to_list                        (gboolean done, guint32 due_date_julian, guint32 start_date_julian, gchar *priority, gchar *category, gchar *summary, gchar *desc, GUI *appGUI);
 
45
 
 
46
#endif /* _TASKS_H */
 
47