Add CallsEncryptionIndicator
This will be used in the next commit to let a call display indicate whether the call is encrypted or not.
This commit is contained in:
45
src/calls-encryption-indicator.h
Normal file
45
src/calls-encryption-indicator.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Purism SPC
|
||||
*
|
||||
* This file is part of Calls.
|
||||
*
|
||||
* Calls is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Calls is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Calls. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Author: Adrien Plazas <adrien.plazas@puri.sm>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef CALLS_ENCRYPTION_INDICATOR_H__
|
||||
#define CALLS_ENCRYPTION_INDICATOR_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define CALLS_TYPE_ENCRYPTION_INDICATOR (calls_encryption_indicator_get_type ())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (CallsEncryptionIndicator, calls_encryption_indicator, CALLS, ENCRYPTION_INDICATOR, GtkStack);
|
||||
|
||||
|
||||
void calls_encryption_indicator_set_encrypted (CallsEncryptionIndicator *self,
|
||||
gboolean encrypted);
|
||||
gboolean calls_encryption_indicator_get_encrypted (CallsEncryptionIndicator *self);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* CALLS_ENCRYPTION_INDICATOR_H__ */
|
||||
|
||||
Reference in New Issue
Block a user