aboutsummaryrefslogtreecommitdiff
path: root/src/message
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/message/signalproxy/objects/certmanager.rs27
-rw-r--r--src/message/signalproxy/objects/mod.rs5
2 files changed, 32 insertions, 0 deletions
diff --git a/src/message/signalproxy/objects/certmanager.rs b/src/message/signalproxy/objects/certmanager.rs
new file mode 100644
index 0000000..238c495
--- /dev/null
+++ b/src/message/signalproxy/objects/certmanager.rs
@@ -0,0 +1,27 @@
+use libquassel_derive::Network;
+
+#[derive(Debug, Clone, PartialEq, Network)]
+#[network(repr = "list")]
+pub struct CertManager {
+ #[network(rename = "sslKey", variant = "ByteArray")]
+ pub ssl_key: String,
+ #[network(rename = "sslCert", variant = "ByteArray")]
+ pub ssl_cert: String,
+ // // C->S calls
+
+ // /**
+ // * Replaces all properties of the object with the content of the
+ // * "properties" parameter. This parameter is in network representation.
+ // */
+ // requestUpdate(properties: QVariantMap)
+
+ // // S->C calls
+
+ // setSslCert(encoded: QByteBuffer | null)
+ // setSslKey(encoded: QByteBuffer | null)
+ // /**
+ // * Replaces all properties of the object with the content of the
+ // * "properties" parameter. This parameter is in network representation.
+ // */
+ // update(properties: QVariantMap)
+}
diff --git a/src/message/signalproxy/objects/mod.rs b/src/message/signalproxy/objects/mod.rs
index 24c244d..e8bc185 100644
--- a/src/message/signalproxy/objects/mod.rs
+++ b/src/message/signalproxy/objects/mod.rs
@@ -1,6 +1,7 @@
mod aliasmanager;
mod buffersyncer;
mod bufferview;
+mod certmanager;
mod coreinfo;
mod highlightrulemanager;
mod identity;
@@ -14,6 +15,7 @@ use std::convert::TryInto;
pub use aliasmanager::*;
pub use buffersyncer::*;
pub use bufferview::*;
+pub use certmanager::*;
pub use coreinfo::*;
pub use highlightrulemanager::*;
pub use identity::*;
@@ -33,6 +35,7 @@ pub enum Types {
BufferSyncer(BufferSyncer),
BufferViewConfig(BufferViewConfig),
BufferViewManager(BufferViewManager),
+ CertManager(CertManager),
Network(network::Network),
NetworkInfo(NetworkInfo),
NetworkConfig(NetworkConfig),
@@ -48,6 +51,7 @@ impl Types {
Types::BufferSyncer(val) => val.to_network(),
Types::BufferViewConfig(val) => val.to_network(),
Types::BufferViewManager(val) => val.to_network(),
+ Types::CertManager(val) => val.to_network(),
Types::Network(val) => val.to_network(),
Types::NetworkInfo(val) => val.to_network(),
Types::NetworkConfig(val) => val.to_network(),
@@ -72,6 +76,7 @@ impl Types {
"CoreData" => Types::CoreData(CoreData::from_network(
&mut input.remove(0).try_into().unwrap(),
)),
+ "CertManager" => Types::CertManager(CertManager::from_network(input)),
_ => Types::Unknown(input.to_owned()),
}
}