digiKam
DigikamGenericMjpegStreamPlugin::MjpegServerMngr Class Reference
+ Inheritance diagram for DigikamGenericMjpegStreamPlugin::MjpegServerMngr:

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 MjpegServerMngrinstance ()
 

Friends

class MjpegServerMngrCreator
 

Member Function Documentation

◆ albumsShared()

int DigikamGenericMjpegStreamPlugin::MjpegServerMngr::albumsShared ( ) const

Return some stats about total albums and total items shared on the network.

◆ cleanUp()

void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::cleanUp ( )

Stop the DLNA server and clean-up.

Referenced by saveAtShutdown(), and startMjpegServer().

◆ collectionMap()

MjpegServerMap DigikamGenericMjpegStreamPlugin::MjpegServerMngr::collectionMap ( ) const

Return the current album map shared.

◆ configGroupName()

QString DigikamGenericMjpegStreamPlugin::MjpegServerMngr::configGroupName ( ) const

Config properties methods.

Referenced by loadAtStartup(), and saveAtShutdown().

◆ configStartServerOnStartupEntry()

QString DigikamGenericMjpegStreamPlugin::MjpegServerMngr::configStartServerOnStartupEntry ( ) const

Referenced by loadAtStartup(), and saveAtShutdown().

◆ instance()

MjpegServerMngr * DigikamGenericMjpegStreamPlugin::MjpegServerMngr::instance ( )
static

This manager is a singleton. Use this method to control the MJPEG server instance.

Referenced by DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::cleanUp(), and DigikamGenericMjpegStreamPlugin::MjpegStreamPlugin::MjpegStreamPlugin().

◆ isRunning()

bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::isRunning ( ) const

Return true if server is running in background.

◆ itemsList()

QList< QUrl > DigikamGenericMjpegStreamPlugin::MjpegServerMngr::itemsList ( ) const

Return a flat list of items shared.

Referenced by itemsShared().

◆ itemsShared()

int DigikamGenericMjpegStreamPlugin::MjpegServerMngr::itemsShared ( ) const

References itemsList().

◆ load()

bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::load ( )

References setCollectionMap().

Referenced by loadAtStartup().

◆ 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().

◆ mjpegServerNotification()

void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::mjpegServerNotification ( bool  started)

Send a notification message if MediaServer have been started or not.

References Digikam::DNotificationWrapper().

Referenced by loadAtStartup().

◆ save()

bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::save ( )

Low level methods to save and load from xml data file.

Referenced by saveAtShutdown().

◆ saveAtShutdown()

void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::saveAtShutdown ( )

◆ setCollectionMap()

void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::setCollectionMap ( const MjpegServerMap map)

Setup the list of albums to share with MJPEG server.

Referenced by load().

◆ setItemsList()

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.

◆ setSettings()

void DigikamGenericMjpegStreamPlugin::MjpegServerMngr::setSettings ( const MjpegStreamSettings set)

Setup the MJPEGstream settings.

◆ settings()

MjpegStreamSettings DigikamGenericMjpegStreamPlugin::MjpegServerMngr::settings ( ) const

Return the MJPEG stream settings.

◆ startMjpegServer()

bool DigikamGenericMjpegStreamPlugin::MjpegServerMngr::startMjpegServer ( )

Start the DLNA server and share the contents. Return true is all is on-line.

References cleanUp().

Referenced by loadAtStartup().

Friends And Related Function Documentation

◆ MjpegServerMngrCreator

friend class MjpegServerMngrCreator
friend

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