/usr/include/itl/itl-gobject.h is in libitl-gobject-dev 0.2-1.
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 | /* Copyright (C) 2011 أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ITL_GOBJECT_H
#define _ITL_GOBJECT_H
#include <hijri.h>
#include <prayer.h>
#include <glib.h>
#include <glib-object.h>
GDate *itl_h_date(gint day, gint month, gint year);
GDate *itl_g_date(gint day, gint month, gint year);
GDate *itl_G2H(gint yg, gint mg, gint dg);
GDate *itl_H2G(gint yh, gint mh, gint dh);
GDate *itl_HijriGreg (GDate *DateIn, gboolean Hijri, gboolean UmmAlQura);
G_BEGIN_DECLS
typedef enum
{
SHAFII = 1,
HANAFI = 2
} ItlMathhab;
typedef enum
{
NOROUND = 0,
NORMAL = 1,
SPECIAL = 2,
AGGRESSIVE = 3
} ItlRoundMethod;
typedef enum
{
NONE,
EGYPT_SURVEY,
KARACHI_SHAF,
KARACHI_HANAF,
NORTH_AMERICA,
MUSLIM_LEAGUE,
UMM_ALQURRA,
FIXED_ISHAA,
EGYPT_NEW
} ItlMethod;
typedef enum
{
NONE_EX,
LAT_ALL,
LAT_ALWAYS,
LAT_INVALID,
GOOD_ALL,
GOOD_INVALID,
SEVEN_NIGHT_ALWAYS,
SEVEN_NIGHT_INVALID,
SEVEN_DAY_ALWAYS,
SEVEN_DAY_INVALID,
HALF_ALWAYS,
HALF_INVALID,
MIN_ALWAYS,
MIN_INVALID,
GOOD_INVALID_SAME
} ItlExtremeMethod;
#define ITL_TYPE_PRAYER itl_prayer_get_type()
#define ITL_PRAYER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
ITL_TYPE_PRAYER, ItlPrayer))
#define ITL_PRAYER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), \
ITL_TYPE_PRAYER, ItlPrayerClass))
#define GOBJECT_IS_PRAYER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
ITL_TYPE_PRAYER))
#define GOBJECT_IS_PRAYER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
ITL_TYPE_PRAYER))
#define ITL_PRAYER_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
ITL_TYPE_PRAYER, ItlPrayerClass))
typedef struct _ItlPrayer ItlPrayer;
typedef struct _ItlPrayerClass ItlPrayerClass;
typedef struct _ItlPrayerPrivate ItlPrayerPrivate;
struct _ItlPrayer {
GObject parent;
/* private */
ItlPrayerPrivate *priv;
};
struct _ItlPrayerClass
{
GObjectClass parent_class;
};
GType itl_prayer_get_type (void) G_GNUC_CONST;
ItlPrayer *itl_prayer_new (void);
void itl_prayer_setMethod(ItlPrayer *prayer, ItlMethod n);
GList *itl_prayer_getPrayerTimes (ItlPrayer *prayer, GDate *cdate);
GDateTime *itl_prayer_getNextDayFajr (ItlPrayer *prayer, GDate *cdate);
gdouble itl_prayer_getNorthQibla(ItlPrayer *prayer);
void itl_prayer_setLocation (ItlPrayer *prayer, gdouble degreeLong, gdouble
degreeLat, gdouble gmtDiff, gboolean dst);
G_END_DECLS
#endif // _ITL_GOBJECT_H
|