mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-09 11:41:28 +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
25
lan-mouse-gtk/src/key_object.rs
Normal file
25
lan-mouse-gtk/src/key_object.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
mod imp;
|
||||
|
||||
use adw::subclass::prelude::*;
|
||||
use gtk::glib::{self, Object};
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct KeyObject(ObjectSubclass<imp::KeyObject>);
|
||||
}
|
||||
|
||||
impl KeyObject {
|
||||
pub fn new(desc: String, fp: String) -> Self {
|
||||
Object::builder()
|
||||
.property("description", desc)
|
||||
.property("fingerprint", fp)
|
||||
.build()
|
||||
}
|
||||
|
||||
pub fn get_description(&self) -> String {
|
||||
self.imp().description.borrow().clone()
|
||||
}
|
||||
|
||||
pub fn get_fingerprint(&self) -> String {
|
||||
self.imp().fingerprint.borrow().clone()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user