digiKam
|
Public Member Functions | |
int | albumsShared () const |
void | cleanUp () |
MjpegServerMap | collectionMap () const |
QString | configGroupName () const |
QString | configStartServerOnStartupEntry () const |
bool | isRunning () const |
QList< QUrl > | itemsList () const |
int | itemsShared () const |
bool | load () |
bool | loadAtStartup () |
void | mjpegServerNotification (bool started) |
bool | save () |
void | saveAtShutdown () |
void | setCollectionMap (const MjpegServerMap &) |
void | setItemsList (const QString &aname, const QList< QUrl > &urls) |
void | setSettings (const MjpegStreamSettings &set) |
MjpegStreamSettings | settings () const |
bool | startMjpegServer () |
Static Public Member Functions | |
static MjpegServerMngr * | instance () |
Friends | |
class | MjpegServerMngrCreator |
int DigikamGenericMjpegStreamPlugin::MjpegServerMngr::albumsShared | ( | ) | const |
Return some stats about total albums and total items shared on the network.
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::cleanUp | ( | ) |
Stop the DLNA server and clean-up.
Referenced by saveAtShutdown(), and startMjpegServer().
MjpegServerMap DigikamGenericMjpegStreamPlugin::MjpegServerMngr::collectionMap | ( | ) | const |
Return the current album map shared.
QString DigikamGenericMjpegStreamPlugin::MjpegServerMngr::configGroupName | ( | ) | const |
Config properties methods.
Referenced by loadAtStartup(), and saveAtShutdown().
QString DigikamGenericMjpegStreamPlugin::MjpegServerMngr::configStartServerOnStartupEntry | ( | ) | const |
Referenced by loadAtStartup(), and saveAtShutdown().
|
static |
This manager is a singleton. Use this method to control the MJPEG server instance.
Referenced by DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::cleanUp(), and DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::MjpegStreamPlugin().
bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::isRunning | ( | ) | const |
Return true if server is running in background.
QList< QUrl > DigikamGenericMjpegStreamPlugin::MjpegServerMngr::itemsList | ( | ) | const |
Return a flat list of items shared.
Referenced by itemsShared().
int DigikamGenericMjpegStreamPlugin::MjpegServerMngr::itemsShared | ( | ) | const |
References itemsList().
bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::load | ( | ) |
References setCollectionMap().
Referenced by loadAtStartup().
bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::loadAtStartup | ( | ) |
Wrapper to check if server configuration must be saved and restored between application sessions.
References configGroupName(), configStartServerOnStartupEntry(), load(), mjpegServerNotification(), and startMjpegServer().
Referenced by DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::MjpegStreamPlugin().
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::mjpegServerNotification | ( | bool | started | ) |
Send a notification message if MediaServer have been started or not.
References Digikam::DNotificationWrapper().
Referenced by loadAtStartup().
bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::save | ( | ) |
Low level methods to save and load from xml data file.
Referenced by saveAtShutdown().
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::saveAtShutdown | ( | ) |
References cleanUp(), configGroupName(), configStartServerOnStartupEntry(), and save().
Referenced by DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::cleanUp().
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::setCollectionMap | ( | const MjpegServerMap & | map | ) |
Setup the list of albums to share with MJPEG server.
Referenced by load().
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::setItemsList | ( | const QString & | aname, |
const QList< QUrl > & | urls | ||
) |
Setup the list of items to share with the MJPEG server into a single album.
void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::setSettings | ( | const MjpegStreamSettings & | set | ) |
Setup the MJPEGstream settings.
MjpegStreamSettings DigikamGenericMjpegStreamPlugin::MjpegServerMngr::settings | ( | ) | const |
Return the MJPEG stream settings.
bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::startMjpegServer | ( | ) |
Start the DLNA server and share the contents. Return true is all is on-line.
References cleanUp().
Referenced by loadAtStartup().
|
friend |