Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright (C) 2014 Bastien Nocera <hadess@hadess.net> |
3 |
|
|
* |
4 |
|
|
* This program is free software; you can redistribute it and/or modify |
5 |
|
|
* it under the terms of the GNU General Public License as published by |
6 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
7 |
|
|
* (at your option) any later version. |
8 |
|
|
* |
9 |
|
|
* This program is distributed in the hope that it will be useful, |
10 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
|
|
* GNU General Public License for more details. |
13 |
|
|
* |
14 |
|
|
* You should have received a copy of the GNU General Public License |
15 |
|
|
* along with this program; if not, write to the Free Software |
16 |
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
17 |
|
|
* |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
#pragma once |
21 |
|
|
|
22 |
|
|
#include <gtk/gtk.h> |
23 |
|
|
|
24 |
|
|
G_BEGIN_DECLS |
25 |
|
|
|
26 |
|
|
#define CC_TYPE_SHARING_NETWORKS (cc_sharing_networks_get_type ()) |
27 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcSharingNetworks, cc_sharing_networks, CC, SHARING_NETWORKS, GtkBox) |
28 |
|
|
|
29 |
|
|
typedef enum { |
30 |
|
|
CC_SHARING_STATUS_UNSET, |
31 |
|
|
CC_SHARING_STATUS_OFF, |
32 |
|
|
CC_SHARING_STATUS_ENABLED, |
33 |
|
|
CC_SHARING_STATUS_ACTIVE |
34 |
|
|
} CcSharingStatus; |
35 |
|
|
|
36 |
|
|
GtkWidget * cc_sharing_networks_new (GDBusProxy *proxy, |
37 |
|
|
const char *service_name); |
38 |
|
|
|
39 |
|
|
G_END_DECLS |
40 |
|
|
|