BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
FormUpdate Class Reference

Dialog for showing update details. More...

#include <formupdate.h>

Collaboration diagram for FormUpdate:
Collaboration graph

Public Member Functions

 FormUpdate (QWidget *parent=0)
 
bool isUpdateForThisSystem () const
 Indication of update/platform suitability. More...
 
bool isSelfUpdateSupported () const
 Indication of presence of self-update feature. More...
 

Protected Slots

void checkForUpdates ()
 Check for updates and interprets the results.
 
void startUpdate ()
 
void updateProgress (qint64 bytes_received, qint64 bytes_total)
 
void updateCompleted (QNetworkReply::NetworkError status, QByteArray contents)
 
void saveUpdateFile (const QByteArray &file_contents)
 

Detailed Description

Dialog for showing update details.

See also
UpdateInfo, UpdateUrl, SystemFactory::checkForUpdates()

Definition at line 51 of file formupdate.h.

Member Function Documentation

bool FormUpdate::isSelfUpdateSupported ( ) const

Indication of presence of self-update feature.

Returns
Returns true if application can self-update on current platform.
Note
This returns false for all platforms.

Definition at line 73 of file formupdate.cpp.

73  {
74  // DO NOT allow self-updating for now.
75 #if defined(Q_OS_WIN) || defined(Q_OS_OS2)
76  return false;
77 #else
78  return false;
79 #endif
80 }
bool FormUpdate::isUpdateForThisSystem ( ) const

Indication of update/platform suitability.

Returns
Returns true if current update provides installation file for current platform.

Definition at line 69 of file formupdate.cpp.

69  {
70  return m_updateInfo.m_urls.keys().contains(OS_ID);
71 }

Here is the caller graph for this function:


The documentation for this class was generated from the following files: