Added --remove ability to profile subcommand

This commit is contained in:
Tony Dwire
2021-03-19 22:24:59 -05:00
parent 53ee6015d0
commit 1c48ab227d
4 changed files with 42 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ trait Daemon {
/// ProfileNames method
fn profile_names(&self) -> zbus::Result<String>;
/// Remove method
fn remove(&self, profile: &str) -> zbus::Result<()>;
/// SetProfile method
fn set_profile(&self, profile: &str) -> zbus::Result<()>;
@@ -90,6 +93,11 @@ impl<'a> ProfileProxy<'a> {
self.0.profile_names()
}
#[inline]
pub fn remove(&self, profile: &str) -> Result<()> {
self.0.remove(profile)
}
#[inline]
pub fn connect_notify_profile(
&self,