aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy
diff options
context:
space:
mode:
Diffstat (limited to 'src/message/signalproxy')
-rw-r--r--src/message/signalproxy/objects/coreinfo.rs5
-rw-r--r--src/message/signalproxy/objects/mod.rs13
2 files changed, 10 insertions, 8 deletions
diff --git a/src/message/signalproxy/objects/coreinfo.rs b/src/message/signalproxy/objects/coreinfo.rs
index ef9826f..f3282b6 100644
--- a/src/message/signalproxy/objects/coreinfo.rs
+++ b/src/message/signalproxy/objects/coreinfo.rs
@@ -1,8 +1,9 @@
-use libquassel_derive::NetworkMap;
+use libquassel_derive::{NetworkList, NetworkMap};
+use crate::message::signalproxy::translation::NetworkMap;
use crate::primitive::{DateTime, StringList};
-#[derive(Debug, Clone, PartialEq, NetworkMap)]
+#[derive(Debug, Clone, PartialEq, NetworkMap, NetworkList)]
#[network(repr = "map")]
pub struct CoreInfo {
#[network(rename = "coreData", variant = "VariantMap", network)]
diff --git a/src/message/signalproxy/objects/mod.rs b/src/message/signalproxy/objects/mod.rs
index 20c78a2..0b647f9 100644
--- a/src/message/signalproxy/objects/mod.rs
+++ b/src/message/signalproxy/objects/mod.rs
@@ -51,13 +51,14 @@ use crate::primitive::VariantList;
/// - [X] Network
/// - [X] NetworkInfo
/// - [X] NetworkConfig
+// TODO Handle SyncedCoreInfo feature flag
#[derive(Debug, Clone, PartialEq, From)]
pub enum Types {
AliasManager(AliasManager),
BufferSyncer(BufferSyncer),
BufferViewConfig(BufferViewConfig),
BufferViewManager(BufferViewManager),
- CoreInfo(CoreInfo),
+ // CoreInfo(CoreInfo),
CoreData(CoreData),
HighlightRuleManager(HighlightRuleManager),
IgnoreListManager(IgnoreListManager),
@@ -76,7 +77,7 @@ impl Types {
Types::BufferSyncer(val) => val.to_network_list(),
Types::BufferViewConfig(val) => val.to_network_list(),
Types::BufferViewManager(val) => val.to_network_list(),
- Types::CoreInfo(val) => vec![val.to_network_map().into()],
+ // Types::CoreInfo(val) => vec![val.to_network_map().into()],
Types::CoreData(val) => vec![val.to_network_map().into()],
Types::HighlightRuleManager(val) => val.to_network_list(),
Types::IgnoreListManager(val) => val.to_network_list(),
@@ -88,7 +89,7 @@ impl Types {
}
}
- pub fn from_network(class_name: &str, input: &mut VariantList) -> Self {
+ pub fn from_network(class_name: &str, _object_name: &str, input: &mut VariantList) -> Self {
debug!(
"converting {} from network object: {:#?}",
class_name, input
@@ -102,9 +103,9 @@ impl Types {
"BufferViewManager" => {
Types::BufferViewManager(BufferViewManager::from_network_list(input))
}
- "CoreInfo" => Types::CoreInfo(CoreInfo::from_network_map(
- &mut input.remove(0).try_into().unwrap(),
- )),
+ // "CoreInfo" => Types::CoreInfo(CoreInfo::from_network_map(
+ // &mut input.remove(0).try_into().unwrap(),
+ // )),
"CoreData" => Types::CoreData(CoreData::from_network_map(
&mut input.remove(0).try_into().unwrap(),
)),
implementation for required signalproxy objectsMax Audron-13/+131 2025-03-01remove old quassel attributes from derive macrosMax Audron-37/+36 this was used across the different derive macros and already replace by macro specific network and setter attributes. 2025-02-27extend docs and reorganize filesMax Audron-1281/+321 2025-02-26implement NetworkId UserTypeMax Audron-108/+196 2025-02-26implement IdentityIdMax Audron-8/+79 2025-02-26refactor variant deserializationMax Audron-123/+59 2025-02-26refactor deserialize and serializevariant traitMax Audron-90/+80 move stuff around a bit to sepperate it out for deserializevariant 2025-02-26refactor variant serialization codeMax Audron-256/+405 Factored out a lot of the serialization of variants into trait's that have auto impl so code duplication is much reduced 2025-02-26add MsgId and BufferId to objects where neededMax Audron-141/+157 some objects where still handling BufferId or MsgId as their raw types which lead to errors now that the Types are properly parsed in the varinats 2025-02-25enable transparent repr for msgid and bufferidMax Audron-0/+2 2025-02-25Implement BacklogManagerTobias Deiminger-59/+113 2025-02-25Use BufferId in BufferInfoTobias Deiminger-10/+11 2025-02-25Use BufferId in VariantTobias Deiminger-2/+33 2025-02-25Add BufferId as Rust typeTobias Deiminger-0/+39 Up to now it was represented as i32. If we introduce a newtype for it, we can handle it idiomatically as dedicated Variant::BufferId variant (instead of having it mashed into Variant::UserType). 2025-02-25Use MsgId in MessageTobias Deiminger-18/+6 2025-02-25Use MsgId in VariantTobias Deiminger-20/+37 2025-02-25Add MsgId as Rust typeTobias Deiminger-0/+56 Up to now it was handled implicitely in Variant::UserType. Making it an explicit type allows to centralize the i32/i64 cfg dependency and to use the type for arguments in signalproxy::objects functions. 2025-02-24added session manager comments and log messageMax Audron-1/+3 2025-02-23add identity syncable to SessionManagerMax Audron-1/+8 2025-02-23add syncables for IrcUserMax Audron-2/+53 2025-02-23move network config to it's own file and impl it's syncMax Audron-23/+84 2025-02-23add basic network syncablesMax Audron-39/+420 2025-02-23clean up unused_import and unused_variables a bitMax Audron-2/+8 2025-02-23fix server feature errorsMax Audron-28/+23 2025-02-23fix ircchannel and maplist network representationMax Audron-154/+137 2025-02-22replace deprecated failure crate with thiserrorMax Audron-278/+194 this changes the public API in that all our methods now return a proper ProtocolError crate. Needed change anyways to properly deal with all our errors in the long run. Will still need to do a pass through the crate to remove all existing unwraps where it makes sense. 2025-02-22update dependencies and fix errorsMax Audron-508/+332 2025-02-22update flakeMax Audron-94/+117 2024-05-22add todos to readmeMax Audron-16/+35