~larsu/indicator-messages/set-status-return-value

« back to all changes in this revision

Viewing changes to src/app-section.h

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-08-28 17:47:38 UTC
  • mfrom: (365.3.1 trunk)
  • Revision ID: tarmac-20130828174738-f30aw3wwb7bwzd3c
Remove app-section.[ch], it's not used anymore.

Approved by Ted Gould, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
An indicator to show information that is in messaging applications
3
 
that the user is using.
4
 
 
5
 
Copyright 2012 Canonical Ltd.
6
 
 
7
 
Authors:
8
 
    Lars Uebernickel <lars.uebernickel@canonical.com>
9
 
    Ted Gould <ted@canonical.com>
10
 
 
11
 
This program is free software: you can redistribute it and/or modify it 
12
 
under the terms of the GNU General Public License version 3, as published 
13
 
by the Free Software Foundation.
14
 
 
15
 
This program is distributed in the hope that it will be useful, but 
16
 
WITHOUT ANY WARRANTY; without even the implied warranties of 
17
 
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
18
 
PURPOSE.  See the GNU General Public License for more details.
19
 
 
20
 
You should have received a copy of the GNU General Public License along 
21
 
with this program.  If not, see <http://www.gnu.org/licenses/>.
22
 
*/
23
 
#ifndef __APP_SECTION_H__
24
 
#define __APP_SECTION_H__
25
 
 
26
 
#include <gio/gio.h>
27
 
#include <gio/gdesktopappinfo.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define APP_SECTION_TYPE            (app_section_get_type ())
32
 
#define APP_SECTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_SECTION_TYPE, AppSection))
33
 
#define APP_SECTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), APP_SECTION_TYPE, AppSectionClass))
34
 
#define IS_APP_SECTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APP_SECTION_TYPE))
35
 
#define IS_APP_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_SECTION_TYPE))
36
 
#define APP_SECTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_SECTION_TYPE, AppSectionClass))
37
 
 
38
 
typedef struct _AppSection        AppSection;
39
 
typedef struct _AppSectionClass   AppSectionClass;
40
 
typedef struct _AppSectionPrivate AppSectionPrivate;
41
 
 
42
 
 
43
 
struct _AppSectionClass {
44
 
        GObjectClass parent_class;
45
 
};
46
 
 
47
 
struct _AppSection {
48
 
        GObject parent;
49
 
        AppSectionPrivate *priv;
50
 
};
51
 
 
52
 
GType app_section_get_type (void);
53
 
AppSection * app_section_new (GDesktopAppInfo *appinfo);
54
 
const gchar * app_section_get_desktop (AppSection * appitem);
55
 
GActionGroup * app_section_get_actions (AppSection *self);
56
 
GMenuModel * app_section_get_menu (AppSection *appitem);
57
 
GAppInfo * app_section_get_app_info (AppSection *appitem);
58
 
gboolean app_section_get_draws_attention (AppSection *appitem);
59
 
void app_section_clear_draws_attention (AppSection *appitem);
60
 
void app_section_set_object_path (AppSection *self,
61
 
                                  GDBusConnection *bus,
62
 
                                  const gchar *bus_name,
63
 
                                  const gchar *object_path);
64
 
void app_section_unset_object_path (AppSection *self);
65
 
gboolean app_section_get_uses_chat_status (AppSection *self);
66
 
const gchar * app_section_get_status (AppSection *self);
67
 
void app_section_set_status (AppSection *self,
68
 
                             const gchar *status);
69
 
 
70
 
G_END_DECLS
71
 
 
72
 
#endif /* __APP_SECTION_H__ */
73