~ubuntu-branches/ubuntu/maverick/almanah/maverick

« back to all changes in this revision

Viewing changes to src/link.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2009-05-16 15:49:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090516154921-2uhvlj8btb4qygmd
Tags: 0.6.1-0ubuntu1
* New upstream release (LP: #368078)
* debian/control:
  - Bump Standards-Version to 3.8.1
  - Add intltool, libedataserver1.2-dev, libedataserverui1.2-dev, 
    libecal1.2-dev, libcryptui-dev as build dependency
  - Remove build dependency on autotools-dev and chrpath
* debian/{control/compat/rules}: Move to mimalistic dh7 style
* Update debian/watch
* Update copyright information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
 
/*
3
 
 * Diary
4
 
 * Copyright (C) Philip Withnall 2008 <philip@tecnocode.co.uk>
5
 
 * 
6
 
 * Diary is free software: you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation, either version 3 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * Diary 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 Diary.  If not, see <http://www.gnu.org/licenses/>.
18
 
 */
19
 
 
20
 
#include <glib.h>
21
 
#include <gtk/gtk.h>
22
 
 
23
 
#ifndef DIARY_LINK_H
24
 
#define DIARY_LINK_H
25
 
 
26
 
G_BEGIN_DECLS
27
 
 
28
 
typedef struct {
29
 
        gchar *type;
30
 
        gchar *value;
31
 
        gchar *value2;
32
 
} DiaryLink;
33
 
 
34
 
typedef struct {
35
 
        gchar *type;
36
 
        gchar *name;
37
 
        gchar *description;
38
 
        gchar *icon_name;
39
 
        guint columns;
40
 
        gchar *(*format_value_func) (const DiaryLink *link);
41
 
        gboolean (*view_func) (const DiaryLink *link);
42
 
        void (*build_dialog_func) (const gchar *type, GtkTable *dialog_table);
43
 
        void (*get_values_func) (DiaryLink *link);
44
 
} DiaryLinkType;
45
 
 
46
 
void diary_populate_link_model (GtkListStore *list_store, guint type_column, guint name_column, guint icon_name_column);
47
 
gboolean diary_validate_link_type (const gchar *type);
48
 
const DiaryLinkType *diary_link_get_type (const gchar *type);
49
 
gchar *diary_link_format_value (const DiaryLink *link);
50
 
gboolean diary_link_view (const DiaryLink *link);
51
 
void diary_link_build_dialog (const DiaryLinkType *link_type);
52
 
void diary_link_get_values (DiaryLink *link);
53
 
 
54
 
G_END_DECLS
55
 
 
56
 
#endif /* !DIARY_LINK_H */