#include <plucker_controller.h>
Public Methods |
|
| plucker_controller () | |
| Contructor. |
|
| ~plucker_controller () | |
| Destructor. |
|
| wxString | add_channel (channel_type &channel) |
| Add a channel. |
|
| bool | delete_channel (const wxString &channel_section) |
| Delete a channel. |
|
| bool | delete_channels (wxArrayString &channel_sections) |
| Delete some channels. |
|
| bool | update_channel (const wxString &channel_section, bool install=TRUE) |
| Update a channel. |
|
| bool | update_channels (wxArrayString &channel_sections, bool install=TRUE) |
| Update some channels. |
|
| bool | update_all_channels (bool install=TRUE) |
| Update all channels. |
|
| bool | update_due_channels (bool install=TRUE) |
| Update due channels. |
|
| bool | create_new_channel_subdirectory (const wxString &channel_section, bool copy_template_files=TRUE) |
| Creates a new subdirectory for a channel. |
|
| bool | delete_channel_subdirectory (const wxString &channel_section) |
| Deletes the subdirectory of a channel. |
|
| void | get_all_channels (wxArrayString &channel_sections) |
| Get a list of all channels. |
|
| void | get_due_channels (wxArrayString &channel_sections) |
| Get a list of all due channels. |
|
| void | get_channel_sections_by_doc_names (wxArrayString &doc_names, wxArrayString &channel_sections) |
| Get an array of channel sections that match the array of doc_names. |
|
| wxDateTime | get_next_autoupdate () |
| Get time of next autoupdate. |
|
| int | get_autoupdate_mode () |
| Get the autoupdate mode. |
|
| bool | install_channels (wxArrayString &channel_sections) |
| Install the channels. |
|
| bool | is_channel_due (const wxString &channel_section) |
| Find out if this channel is currently due. |
|
| bool | is_any_channel_due () |
| Find out if there are currently any due channels. |
|
| bool | is_channel_update_enabled (const wxString &channel_section) |
| Queries whether or not a channel is update behaviour enabled. |
|
| wxDateTime | get_channel_due_datetime (const wxString &channel_section, const bool shall_increment=TRUE) |
| Get the datetime at which a channel became due or will become due. |
|
| void | set_channel_update_base (const wxString &channel_section) |
| Sets a new update_base key of a channel. |
|
| bool | get_is_new_update_execution_allowed () |
| Query whether we are allowing or forbidding a new execution of autoupdates. |
|
| void | set_is_new_update_execution_allowed (bool is_allowed) |
| Set whether we are allowing or forbidding a new execution of autoupdates. |
|
| bool | is_all_criteria_met_to_execute_an_autoupdate () |
| Check the 3 criteria needed for an autoupdate event to start:. |
|
Static Public Methods |
|
| plucker_controller * | get () |
| Gets the global object or creates one if none exists. |
|
| plucker_controller * | set (plucker_controller *desired_plucker_controller) |
| Sets the global object and returns a pointer to previous one (may be NULL). |
|
A modular non-visual class, describing API functions for the actions that can be performed on plucker channels: add, delete, update, etc.
|
|
Add a channel.
|
|
||||||||||||
|
Creates a new subdirectory for a channel. Also makes a cache subdirectory inside the newly created directory for the channels directory.
|
|
|
Delete a channel.
|
|
|
Deletes the subdirectory of a channel. Deletes the subdirectory called "channel_section" directory from channels directory Note: wxWindows docs says RmDir() won't work under VMS. A recursive delete on the whole directory won't work, so we just have to cd to cache, delete all the cache; then delete cache, then cd up and delete *.* from there (home.html and exclusion list), then finally delete the channel subdir.
|
|
|
Delete some channels.
|
|
|
Get a list of all channels.
|
|
|
Get the autoupdate mode.
|
|
||||||||||||
|
Get the datetime at which a channel became due or will become due. Properly accounts for a update_base datetime in the future.
|
|
||||||||||||
|
Get an array of channel sections that match the array of doc_names. Since doc_name is not unique, there can be multiple sections for a doc_name. Don't expect the channel sections to thus always have the same index, or number of array entries. Used for example in commandline updating by channel name.
|
|
|
Get a list of all due channels.
|
|
|
Query whether we are allowing or forbidding a new execution of autoupdates. Gets the member value of whether we are allowing or forbidding a new execution of updates (because the app hasn't finished its load initization yet, it is already executing an update, or some GUI component like a preferences/channel dialog is displayed) and should hold off until that is done first.
|
|
|
Get time of next autoupdate.
|
|
|
Install the channels. Different approaches for GTK users, since more convenient to assemble a list and do them all at once, so only have to hit HotSync button once in pilot-xfer.
|
|
|
Check the 3 criteria needed for an autoupdate event to start:. There are 3 criteria required for an autoupdate to start:
|
|
|
Find out if there are currently any due channels.
|
|
|
Find out if this channel is currently due.
|
|
|
Queries whether or not a channel is update behaviour enabled.
|
|
|
Sets the global object and returns a pointer to previous one (may be NULL).
|
|
|
Sets a new update_base key of a channel.
|
|
|
Set whether we are allowing or forbidding a new execution of autoupdates. Gets the member value of whether we are allowing or forbidding a new execution of updates (because the app hasn't finished its load initization yet, it is already executing an update, or some GUI component like a preferences/channel dialog is displayed) and should hold off until that is done first. Note that in plucker_controller::plucker_controller() it was initialized to FALSE, and at the end of the_app::OnInit() it was set to TRUE.
|
|
|
Update all channels.
|
|
||||||||||||
|
Update a channel.
|
|
||||||||||||
|
Update some channels.
|
|
|
Update due channels.
|