mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-19 03:00:55 +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
25 lines
624 B
Rust
25 lines
624 B
Rust
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 {}
|