mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-16 01:30:54 +03:00
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
26 lines
560 B
Rust
26 lines
560 B
Rust
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()
|
|
}
|
|
}
|