mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-07 02:11:29 +03:00
Encryption and One-Way-Control (#200)
This is a major rewrite of the core networking logic enabling one-way control and encryption through the webrtc-dtls crate. closes #164 closes #104
This commit is contained in:
committed by
GitHub
parent
0d074e19f1
commit
7677fae14b
24
lan-mouse-gtk/src/key_object/imp.rs
Normal file
24
lan-mouse-gtk/src/key_object/imp.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
use std::cell::RefCell;
|
||||
|
||||
use glib::Properties;
|
||||
use gtk::glib;
|
||||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
|
||||
#[derive(Properties, Default)]
|
||||
#[properties(wrapper_type = super::KeyObject)]
|
||||
pub struct KeyObject {
|
||||
#[property(name = "description", get, set, type = String)]
|
||||
pub description: RefCell<String>,
|
||||
#[property(name = "fingerprint", get, set, type = String)]
|
||||
pub fingerprint: RefCell<String>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for KeyObject {
|
||||
const NAME: &'static str = "KeyObject";
|
||||
type Type = super::KeyObject;
|
||||
}
|
||||
|
||||
#[glib::derived_properties]
|
||||
impl ObjectImpl for KeyObject {}
|
||||
Reference in New Issue
Block a user