Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

padre::sync(3pm) [debian man page]

Padre::Sync(3pm)					User Contributed Perl Documentation					  Padre::Sync(3pm)

NAME
Padre::Sync - Utility functions for handling remote Configuration Syncing DESCRIPTION
The "Padre::Sync" class contains logic for communicating with a remote Madre::Sync server. This class interacts with the Padre::Wx::Dialog::Sync class for user interface display. METHODS
"new" The constructor returns a new "Padre::Sync" object, but you should normally access it via the main Padre object: my $manager = Padre->ide->config_sync; First argument should be a Padre object. "main" A convenience method to get to the main window. "config" A convenience method to get to the config object "ua" A convenience method to get to the useragent object "register" Attempts to register a user account with the information provided on the Sync server. Parameters: a list of key value pairs to be interpreted as POST parameters Returns error string if user state is already logged in or serverside error occurs. "login" Will log in to remote Sync server using given credentials. State will be updated if login successful. "logout" If currently logged in, will log the Sync session out from the server. State will be updated. "server_delete" Given a logged in session, will attempt to delete the config currently stored on the Sync server (if one currently exists). Will fail if not logged in. "local_to_server" Given a logged in session, will attempt to place the current local config to the Sync server. "server_to_local" Given a logged in session, will replace the local config with what is stored on the server. TODO: is validation of config before replacement required? "english_status" Will return a string explaining current state of Sync dependent on $self->{state} SEE ALSO
Padre, Padre::Config COPYRIGHT &; LICENSE Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself. perl v5.14.2 2012-06-27 Padre::Sync(3pm)

Check Out this Related Man Page

Padre::Config::Apply(3pm)				User Contributed Perl Documentation				 Padre::Config::Apply(3pm)

NAME
Padre::Config::Apply - Implements on-the-fly configuration changes SYNOPSIS
# When the view state of the directory changes we update the menu # check status and show/hide the panel inside of an update lock. sub main_directory { my $main = shift; my $new = shift; my $item = $main->menu->view->{directory}; my $lock = $main->lock( 'UPDATE', 'AUI' ); $item->Check($new) if $new != $item->IsChecked; $main->show_view( directory => $new ); } DESCRIPTION
Padre::Config::Apply allows Padre to apply changes to configuration to the IDE on the fly instead of requiring a restart. Centralising the implementation of this functionality allows loading to be delayed until dynamic config change is actually required, and allow changes to configuration to be made by several different parts of Padre, including both the simple and advanced Preferences dialogs, and the online configuration sync system. Methodology Functions in this module are named after the matching configuration property, and are called by "apply" in Padre::Config when the value being set is different to the current value. Because functions are only called when the configuration value has changed, functions where are not required to do change detection of their own. Functions are called with three parameters. The first parameter is the Padre::Wx::Main main window object, the second is the new value of the configuration property, and the third is the previous value of the configuration property. COPYRIGHT &; LICENSE Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself. perl v5.14.2 2012-06-27 Padre::Config::Apply(3pm)
Man Page