aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-printers-menu.h
blob: 75c076ee598dec93fce614e01ebf2861e81e9cc4 (plain)
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
#ifndef INDICATOR_PRINTERS_MENU_H
#define INDICATOR_PRINTERS_MENU_H

#include <glib-object.h>
#include <libdbusmenu-glib/dbusmenu-glib.h>

#include "cups-notifier.h"

G_BEGIN_DECLS

#define INDICATOR_TYPE_PRINTERS_MENU indicator_printers_menu_get_type()

#define INDICATOR_PRINTERS_MENU(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  INDICATOR_TYPE_PRINTERS_MENU, IndicatorPrintersMenu))

#define INDICATOR_PRINTERS_MENU_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  INDICATOR_TYPE_PRINTERS_MENU, IndicatorPrintersMenuClass))

#define INDICATOR_IS_PRINTERS_MENU(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  INDICATOR_TYPE_PRINTERS_MENU))

#define INDICATOR_IS_PRINTERS_MENU_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  INDICATOR_TYPE_PRINTERS_MENU))

#define INDICATOR_PRINTERS_MENU_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  INDICATOR_TYPE_PRINTERS_MENU, IndicatorPrintersMenuClass))

typedef struct _IndicatorPrintersMenu IndicatorPrintersMenu;
typedef struct _IndicatorPrintersMenuClass IndicatorPrintersMenuClass;
typedef struct _IndicatorPrintersMenuPrivate IndicatorPrintersMenuPrivate;

struct _IndicatorPrintersMenu
{
  GObject parent;
  IndicatorPrintersMenuPrivate *priv;
};

struct _IndicatorPrintersMenuClass
{
  GObjectClass parent_class;
};

GType indicator_printers_menu_get_type (void) G_GNUC_CONST;

IndicatorPrintersMenu *indicator_printers_menu_new (void);
DbusmenuMenuitem * indicator_printers_menu_get_root (IndicatorPrintersMenu *menu);
CupsNotifier * indicator_printers_menu_get_cups_notifier (IndicatorPrintersMenu *self);
void indicator_printers_menu_set_cups_notifier (IndicatorPrintersMenu *self,
                                                CupsNotifier *cups_notifier);

G_END_DECLS

#endif