"Fossies" - the Fresh Open Source Software Archive

Member "jpilot-2_0_1/todo.h" (3 Apr 2021, 2359 Bytes) of package /linux/privat/jpilot-2_0_1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "todo.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.8.2_vs_2_0_1.

    1 /*******************************************************************************
    2  * todo.h
    3  * A module of J-Pilot http://jpilot.org
    4  * 
    5  * Copyright (C) 1999-2014 by Judd Montgomery
    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; version 2 of the License.
   10  *
   11  * This program is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with this program; if not, write to the Free Software
   18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   19  ******************************************************************************/
   20 
   21 #ifndef __TODO_H__
   22 #define __TODO_H__
   23 
   24 #include <pi-todo.h>
   25 #include "utils.h"
   26 
   27 #define MAX_TODO_DESC_LEN     256
   28 #define MAX_TODO_NOTE_LEN     4000
   29 
   30 #define TODO_CHECK_COLUMN     0
   31 #define TODO_PRIORITY_COLUMN  1
   32 #define TODO_NOTE_COLUMN      2
   33 #define TODO_DATE_COLUMN      3
   34 #define TODO_TEXT_COLUMN      4
   35 
   36 enum {
   37     TODO_CHECK_COLUMN_ENUM = 0,
   38     TODO_PRIORITY_COLUMN_ENUM,
   39     TODO_NOTE_COLUMN_ENUM,
   40     TODO_DATE_COLUMN_ENUM,
   41     TODO_TEXT_COLUMN_ENUM,
   42     TODO_DATA_COLUMN_ENUM,
   43     TODO_BACKGROUND_COLOR_ENUM,
   44     TODO_BACKGROUND_COLOR_ENABLED_ENUM,
   45     TODO_FOREGROUND_COLOR_ENUM,
   46     TODO_FORGROUND_COLOR_ENABLED_ENUM,
   47     TODO_NUM_COLS
   48 };
   49 
   50 void free_ToDoList(ToDoList **todo);
   51 int get_todos(ToDoList **todo_list, int sort_order);
   52 int get_todos2(ToDoList **todo_list, int sort_order,
   53                int modified, int deleted, int privates, int completed,
   54                int category);
   55 int get_todo_app_info(struct ToDoAppInfo *ai);
   56 int pc_todo_write(struct ToDo *todo, PCRecType rt, unsigned char attrib,
   57                   unsigned int *unique_id);
   58 int todo_print(void);
   59 int todo_import(GtkWidget *window);
   60 int todo_export(GtkWidget *window);
   61 
   62 /* Exported for datebook use only.  Don't use these */
   63 
   64 void todo_liststore_clear(GtkListStore *pListStore);
   65 void todo_update_liststore(GtkListStore *pListStore, GtkWidget *tooltip_widget,
   66                            ToDoList **todo_list, int category, int main);
   67 
   68 #endif