Public Member Functions | |
| void | get (out UpdateCheckerConfig config) |
| void | set (in UpdateCheckerConfig config) |
| void | check (in CheckVersionType type) |
| void | getStatus (out UpdateCheckerInfo status) |
| void | getProgressStatus (out long percentage) |
| void | download (in CheckVersionType type) |
| void | uploadImage (out kerio::web::KId id, in string fileId) |
| void | performCustomUpgrade (in kerio::web::KId id) |
| void | performUpgrade () |
| void | cancelDownload () |
| void webadmin::UpdateChecker::cancelDownload | ( | ) |
Stops Downloading
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8000 Internal error. - "Internal error." |
| void webadmin::UpdateChecker::check | ( | in CheckVersionType | type | ) |
Checks for a new version
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1000 Operation failed. - "No connection available, update disabled or already in progress." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8000 Internal error. - "Internal error." |
| void webadmin::UpdateChecker::download | ( | in CheckVersionType | type | ) |
Starts Downloading
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8000 Internal error. - "Internal error." |
| void webadmin::UpdateChecker::get | ( | out UpdateCheckerConfig | config | ) |
Returns configuration
| config | - Contains Structure with update checker's settings. |
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
| void webadmin::UpdateChecker::getProgressStatus | ( | out long | percentage | ) |
METHODS ONLY FOR LINUX VERSION
| percentage | - Returns percentage progress for Status Downloading Stop reading this, when percentage == -1 (DownloadFailed) or percentage == 100 (DownloadOk) |
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
| void webadmin::UpdateChecker::getStatus | ( | out UpdateCheckerInfo | status | ) |
Returns actual state of Update checker
| status | - a phase of update process. |
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8000 Internal error. - "Internal error." |
| void webadmin::UpdateChecker::performCustomUpgrade | ( | in kerio::web::KId | id | ) |
Processes newly uploaded image for upgrade. Ids according to spec 390. In case of return true, it reboots machine (after 2s delay)
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1000 Operation failed. - "Unable to perform update: %1" 1002 No such entity. - "Unable to open upgrade image file." 1004 Access denied. - "Insufficient rights to perform the requested operation." 8000 Internal error. - "Internal error." |
| void webadmin::UpdateChecker::performUpgrade | ( | ) |
Runs upgrade In case of return true, it reboots machine (after 2s delay)
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1000 Operation failed. - "Unable to perform update: %1" 1004 Access denied. - "Insufficient rights to perform the requested operation." |
| void webadmin::UpdateChecker::set | ( | in UpdateCheckerConfig | config | ) |
Stores configuration
| config | - Contains Structure with update checker's settings to be stored &a pplied. |
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |
| void webadmin::UpdateChecker::uploadImage | ( | out kerio::web::KId | id, |
| in string | fileId | ||
| ) |
Converts fileId to id, that will be passed into performCustomUpgrade.
| id | - an id obtained from fileId (same values); |
| fileId | - according to spec 390. |
| kerio::web::ApiException | -32001 Session expired. - "The user is not logged in." 1004 Access denied. - "Insufficient rights to perform the requested operation." |