Rework to get a map of connections in ConnectionManager

This commit is contained in:
2020-05-10 19:04:14 +01:00
parent 04bf72637d
commit 6d79491e32
7 changed files with 175 additions and 40 deletions

View File

@@ -2,7 +2,13 @@ use crate::telepathy;
use dbus::{arg, tree};
use std::collections::HashMap;
#[derive(Debug)]
pub const PROTO_OBJECT_PATH: &'static str =
"/org/freedesktop/Telepathy/ConnectionManager/padfoot/delta";
pub const PROTO_BUS_NAME: &'static str =
"org.freedesktop.Telepathy.ConnectionManager.padfoot.delta";
pub const PROTO_NAME: &'static str = "delta";
#[derive(Clone, Copy, Default, Debug)]
pub struct Protocol {}
pub type Variant = arg::Variant<Box<dyn arg::RefArg + 'static>>;
@@ -14,14 +20,12 @@ pub type ParamSpec = (
Variant, // Default
);
// Requestable_Channel_Class
pub type RequestableChannelSpec = (
// Requestable_Channel_Class
HashMap<String, Variant>, // Fixed properties
Vec<String>, // Allowed properties
);
pub const NAME: &'static str = "delta";
// FIXME: these should come from codegen
//const FLAG_NONE: u32 = 0;
const FLAG_REQUIRED: u32 = 1;