2
* Copyright © 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef HUDRANDOMSOURCE_H_
18
#define HUDRANDOMSOURCE_H_
20
#include <glib-object.h>
25
#define HUD_TYPE_RANDOM_SOURCE (hud_random_source_get_type ())
26
#define HUD_RANDOM_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HUD_TYPE_RANDOM_SOURCE, HudRandomSource))
27
#define HUD_IS_RANDOM_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HUD_TYPE_RANDOM_SOURCE))
28
#define HUD_RANDOM_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HUD_TYPE_RANDOM_SOURCE, HudRandomSourceClass))
29
#define HUD_IS_RANDOM_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HUD_TYPE_RANDOM_SOURCE))
30
#define HUD_RANDOM_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HUD_TYPE_RANDOM_SOURCE, HudRandomSourceClass))
32
typedef struct _HudRandomSource HudRandomSource;
34
/* used by HUD_TYPE_RANDOM_SOURCE */
35
GType hud_random_source_get_type (void);
41
gchar * hud_random_source_make_words (GRand *rand,
44
HudSource * hud_random_source_new (GRand *rand);
46
HudSource * hud_random_source_new_full (GRand *rand, const gint max_depth,
47
const gint max_items, const gint max_words, const gchar *application_id, const gchar *app_icon);
49
#endif /* HUDRANDOMSOURCE_H_ */