Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ |
2 |
|
|
/* cc-qr-code.h |
3 |
|
|
* |
4 |
|
|
* Copyright 2019 Purism SPC |
5 |
|
|
* |
6 |
|
|
* This program is free software: you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 |
|
|
* |
19 |
|
|
* Author(s): |
20 |
|
|
* Mohammed Sadiq <sadiq@sadiqpk.org> |
21 |
|
|
* |
22 |
|
|
* SPDX-License-Identifier: GPL-3.0-or-later |
23 |
|
|
*/ |
24 |
|
|
|
25 |
|
|
#pragma once |
26 |
|
|
|
27 |
|
|
#include <NetworkManager.h> |
28 |
|
|
#include <gtk/gtk.h> |
29 |
|
|
#include <glib-object.h> |
30 |
|
|
#include <cairo.h> |
31 |
|
|
|
32 |
|
|
G_BEGIN_DECLS |
33 |
|
|
|
34 |
|
|
#define CC_TYPE_QR_CODE (cc_qr_code_get_type ()) |
35 |
|
|
|
36 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcQrCode, cc_qr_code, CC, QR_CODE, GObject) |
37 |
|
|
|
38 |
|
|
CcQrCode *cc_qr_code_new (void); |
39 |
|
|
gboolean cc_qr_code_set_text (CcQrCode *self, |
40 |
|
|
const gchar *text); |
41 |
|
|
GdkPaintable *cc_qr_code_get_paintable (CcQrCode *self, |
42 |
|
|
gint size); |
43 |
|
|
gchar *get_qr_string_for_connection (NMConnection *c); |
44 |
|
|
gboolean is_qr_code_supported (NMConnection *c); |
45 |
|
|
gchar *get_wifi_password (NMConnection *c); |
46 |
|
|
|
47 |
|
|
G_END_DECLS |
48 |
|
|
|