/usr/include/jana/libjana/jana-store-view.h is in libjana-dev 0.0.0+git20091215.9ec1da8a-3build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | /*
* Author: Chris Lord <chris@linux.intel.com>
* Copyright (c) 2007 OpenedHand Ltd
* Copyright (C) 2008 - 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef JANA_STORE_VIEW_H
#define JANA_STORE_VIEW_H
#include <glib-object.h>
#define JANA_TYPE_STORE_VIEW (jana_store_view_get_type ())
#define JANA_STORE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
JANA_TYPE_STORE_VIEW,\
JanaStoreView))
#define JANA_IS_STORE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
JANA_TYPE_STORE_VIEW))
#define JANA_STORE_VIEW_GET_INTERFACE(inst)\
(G_TYPE_INSTANCE_GET_INTERFACE ((inst),\
JANA_TYPE_STORE_VIEW,\
JanaStoreViewInterface))
/**
* JanaStoreView:
*
* The #JanaStoreView struct contains only private data.
*/
typedef struct _JanaStoreView JanaStoreView; /* Dummy object */
typedef struct _JanaStoreViewInterface JanaStoreViewInterface;
#include <libjana/jana-time.h>
#include <libjana/jana-store.h>
/**
* JanaStoreViewField:
* @JANA_STORE_VIEW_SUMMARY: An event summary
* @JANA_STORE_VIEW_LOCATION: An event location
* @JANA_STORE_VIEW_DESCRIPTION: An event description
* @JANA_STORE_VIEW_AUTHOR: A note author
* @JANA_STORE_VIEW_RECIPIENT: A note recipient
* @JANA_STORE_VIEW_BODY: A note body
* @JANA_STORE_VIEW_CATEGORY: A component category
* @JANA_STORE_VIEW_ANYFIELD: Match any field
*
* Enum values for different types of field to use in the
* jana_store_view_set_match() function. Using field values for incorrect
* #JanaComponent types can have undefined results.
**/
typedef enum {
JANA_STORE_VIEW_SUMMARY,
JANA_STORE_VIEW_LOCATION,
JANA_STORE_VIEW_DESCRIPTION,
JANA_STORE_VIEW_AUTHOR,
JANA_STORE_VIEW_RECIPIENT,
JANA_STORE_VIEW_BODY,
JANA_STORE_VIEW_CATEGORY,
JANA_STORE_VIEW_ANYFIELD,
} JanaStoreViewField;
/**
* JanaStoreViewMatch:
* @field: The #JanaStoreViewField to match against
* @data: The string to match with
*
* struct that represents a matching query, returned by
* jana_store_view_add_match().
*/
typedef struct {
JanaStoreViewField field;
gchar *data;
} JanaStoreViewMatch;
struct _JanaStoreViewInterface {
GTypeInterface parent;
void (*get_range) (JanaStoreView *self, JanaTime **start,
JanaTime **end);
void (*set_range) (JanaStoreView *self, JanaTime *start,
JanaTime *end);
JanaStoreViewMatch * (*add_match) (JanaStoreView *self,
JanaStoreViewField field,
const gchar *data);
GList * (*get_matches) (JanaStoreView *self);
void (*remove_match) (JanaStoreView *self,
JanaStoreViewMatch *match);
void (*clear_matches)(JanaStoreView *self);
void (*start) (JanaStoreView *self);
JanaStore * (*get_store) (JanaStoreView *self);
/* Signals */
void (*added) (JanaStoreView *self, GList *components);
void (*modified) (JanaStoreView *self, GList *components);
void (*removed) (JanaStoreView *self, GList *uids);
void (*progress) (JanaStoreView *self, gint percent);
};
GType jana_store_view_get_type (void);
void jana_store_view_get_range (JanaStoreView *self, JanaTime **start,
JanaTime **end);
void jana_store_view_set_range (JanaStoreView *self, JanaTime *start,
JanaTime *end);
JanaStoreViewMatch *jana_store_view_add_match (JanaStoreView *self,
JanaStoreViewField field,
const gchar *data);
GList * jana_store_view_get_matches (JanaStoreView *self);
void jana_store_view_remove_match (JanaStoreView *self,
JanaStoreViewMatch *match);
void jana_store_view_clear_matches (JanaStoreView *self);
void jana_store_view_start (JanaStoreView *self);
JanaStore * jana_store_view_get_store (JanaStoreView *self);
#endif /* JANA_STORE_VIEW_H */
|