Name

Yakuake::Sessions::TraitFor::DBus - Interface with DBus

Synopsis

   use Moo;

   extends 'Yakuake::Sessions::Base';
   with    'Yakuake::Sessions::TraitFor::DBus';

Description

Abstract away the mechanics of communicating with Yakuake via DBus

Configuration and Environment

Defines the following attributes;

dbus_class

A lazy loaded class which defaults to Net::DBus

service

A lazy object ref for the org.kde.yakuake DBus service

sessions

A lazy object ref for the /yakuake/sessions DBus service object

tabs

A lazy object ref for the /yakuake/tabs DBus service object

Subroutines/Methods

apply_sessions

   $self->apply_sessions( $session_tabs );

Apply a profile of sessions

get_sessions_from_yakuake

   $session_tabs = $self->get_sessions_from_yakuake;

Generate a profile of sessions

set_tab_title_for_session

   $self->set_tab_title_for_session( $tab_title, $session_id );

Sets the tab title for the session. The tab title is required. The session id defaults to the currently active session

Diagnostics

None

Dependencies

Class::Usul
Moo::Role
Net::DBus

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2014 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE