UpdateChannel Class Reference

Public Member Functions

 UpdateChannel ()
 Creates a null object. More...
 UpdateChannel (const UpdateChannel &other)
bool isNull () const
QString name () const
bool operator!= (const UpdateChannel &other) const
bool operator== (const UpdateChannel &other) const
QString translatedDescription () const
QString translatedName () const
QString versionDataFileName () const
 Full name of "update-info*.js" file for given channel and platform. More...

Static Public Member Functions

static QList< UpdateChannelallChannels ()
 List of all available channels. More...
static UpdateChannel fromName (const QString &name)
 Creates object from its internal name. More...
static UpdateChannel mkBeta ()
 Creates "beta" channel object. More...
static UpdateChannel mkStable ()
 Creates "stable" channel object. More...

Detailed Description

Definition at line 45 of file updatechannel.h.

Constructor & Destructor Documentation

UpdateChannel::UpdateChannel ( )

Creates a null object.

Definition at line 77 of file updatechannel.h.

Member Function Documentation

QList< UpdateChannel > UpdateChannel::allChannels ( )

List of all available channels.

Definition at line 52 of file updatechannel.cpp.

UpdateChannel UpdateChannel::fromName ( const QString &  name)

Creates object from its internal name.

nameName which must be equal to value returned by the name() method. This name must be the same as one of the names that are hard-coded in objects returned by allChannels().
UpdateChannel object which has the exact same name as specified. If name isn't equal to any known ones then a null object is returned.

Definition at line 60 of file updatechannel.cpp.

UpdateChannel UpdateChannel::mkBeta ( )

Creates "beta" channel object.

Definition at line 73 of file updatechannel.cpp.

UpdateChannel UpdateChannel::mkStable ( )

Creates "stable" channel object.

Definition at line 78 of file updatechannel.cpp.

QString UpdateChannel::versionDataFileName ( ) const

Full name of "update-info*.js" file for given channel and platform.

Definition at line 144 of file updatechannel.cpp.

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