Jens Rehsack > Net-Radio-oFono-0.001 > Net::Radio::oFono::ConnectionManager

Download:
Net-Radio-oFono-0.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Net::Radio::oFono::ConnectionManager - provide ConnectionManager interface for Modem objects

SYNOPSIS ^

  my $oFono = Net::Location::oFono->new();
  my @modems = Net::Location::oFono->get_modems();
  # show default network information
  foreach my $modem_path (@modems) {
    my $conman = Net::Location::oFono->get_modem_interface($modem_path, "ConnectionManager");
    say "Attached: ", 0+$conman->GetProperty("Attached"), # boolean
        "Bearer: ", $conman->GetProperty("Bearer"),
        "RoamingAllowed: ", 0+$conman->GetProperty("RoamingAllowed"); # boolean
    $conman->DeactivateAll(); # end of data
  }

INHERITANCE ^

  Net::Radio::oFono::ConnectionManager
  ISA Net::Radio::oFono::Modem
    ISA Net::Radio::oFono::Helpers::EventMgr
    DOES Net::Radio::oFono::Roles::RemoteObj
    DOES Net::Radio::oFono::Roles::Manager

METHODS ^

See ofono/doc/conman-api.txt for valid properties and detailed action description and possible errors.

_init($obj_path)

Initializes the modem and the manager role to handle the ContextAdded and ContextRemoved signals.

GetContexts(;$force)

Get hash of context objects and properties.

Set the $force parameter to a true value when no D-Bus main loop is running and signal handling might be incomplete.

This method is injected by Net::Radio::oFono::Roles::Manager as an alias for Net::Radio::oFono::Roles::Manager/GetObjects(;$force).

GetContext($obj_path;$force)

Returns an instance of the specified Net::Radio::oFono::ConnectionContext.

Set the $force parameter to a true value when no D-Bus main loop is running and signal handling might be incomplete.

This method is injected by Net::Radio::oFono::Roles::Manager as an alias for Net::Radio::oFono::Roles::Manager/GetObject($object_path;$force).

DeactivateAll()

Deactivates all active contexts.

AddContext($type)

Creates a new Primary context. The type contains the intended purpose of the context.

RemoveContext($obj_path)

Removes a primary context. All secondary contexts, if any, associated with the primary context are also removed.

BUGS ^

Please report any bugs or feature requests to bug-net-radio-ofono at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Radio-oFono. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

If you think you've found a bug then please read "How to Report Bugs Effectively" by Simon Tatham: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Net::Radio::oFono

You can also look for information at:

Where can I go for help with a concrete version?

Bugs and feature requests are accepted against the latest version only. To get patches for earlier versions, you need to get an agreement with a developer of your choice - who may or not report the issue and a suggested fix upstream (depends on the license you have chosen).

Business support and maintenance

For business support you can contact Jens via his CPAN email address rehsackATcpan.org. Please keep in mind that business support is neither available for free nor are you eligible to receive any support based on the license distributed with this package.

ACKNOWLEDGEMENTS ^

At first the guys from the oFono-Team shall be named: Marcel Holtmann and Denis Kenzior, the maintainers and all the people named in ofono/AUTHORS. Without their effort, there would no need for a Net::Radio::oFono module.

Further, Peter "ribasushi" Rabbitson helped a lot by providing hints and support how to make this API accessor a valuable CPAN module.

AUTHOR ^

Jens Rehsack, <rehsack at cpan.org>

LICENSE AND COPYRIGHT ^

Copyright 2012 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: