digiKam
DigikamGenericPiwigoPlugin::PiwigoTalker Class Reference
+ Inheritance diagram for DigikamGenericPiwigoPlugin::PiwigoTalker:

Public Types

enum  { CHUNK_MAX_SIZE = 512*1024 , PIWIGO_VER_2_4 = 204 }
 
enum  State {
  GE_LOGOUT = -1 , GE_LOGIN = 0 , GE_GETVERSION , GE_LISTALBUMS ,
  GE_CHECKPHOTOEXIST , GE_GETINFO , GE_SETINFO , GE_ADDPHOTOCHUNK ,
  GE_ADDPHOTOSUMMARY
}
 

Signals

void signalAddPhotoFailed (const QString &msg)
 
void signalAddPhotoSucceeded ()
 
void signalAlbums (const QList< PiwigoAlbum > &albumList)
 
void signalBusy (bool val)
 
void signalError (const QString &msg)
 
void signalLoginFailed (const QString &msg)
 
void signalProgressInfo (const QString &msg)
 

Public Member Functions

bool addPhoto (int albumId, const QString &photoPath, bool rescale=false, int maxWidth=1600, int maxHeight=1600, int quality=95)
 
void cancel ()
 
void listAlbums ()
 
void listPhotos (const QString &albumName)
 
bool loggedIn () const
 
void login (const QUrl &url, const QString &name, const QString &passwd)
 
 PiwigoTalker (DInfoInterface *const iface, QWidget *const parent)
 
 ~PiwigoTalker () override
 

Static Public Member Functions

static QString getAuthToken ()
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHUNK_MAX_SIZE 
PIWIGO_VER_2_4 

◆ State

Enumerator
GE_LOGOUT 
GE_LOGIN 
GE_GETVERSION 
GE_LISTALBUMS 
GE_CHECKPHOTOEXIST 
GE_GETINFO 
GE_SETINFO 
GE_ADDPHOTOCHUNK 
GE_ADDPHOTOSUMMARY 

Constructor & Destructor Documentation

◆ PiwigoTalker()

DigikamGenericPiwigoPlugin::PiwigoTalker::PiwigoTalker ( DInfoInterface *const  iface,
QWidget *const  parent 
)
explicit

◆ ~PiwigoTalker()

DigikamGenericPiwigoPlugin::PiwigoTalker::~PiwigoTalker ( )
override

References cancel().

Member Function Documentation

◆ addPhoto()

bool DigikamGenericPiwigoPlugin::PiwigoTalker::addPhoto ( int  albumId,
const QString &  photoPath,
bool  rescale = false,
int  maxWidth = 1600,
int  maxHeight = 1600,
int  quality = 95 
)

◆ cancel()

void DigikamGenericPiwigoPlugin::PiwigoTalker::cancel ( )

Referenced by ~PiwigoTalker().

◆ getAuthToken()

QString DigikamGenericPiwigoPlugin::PiwigoTalker::getAuthToken ( )
static

◆ listAlbums()

void DigikamGenericPiwigoPlugin::PiwigoTalker::listAlbums ( )

References GE_LISTALBUMS, and signalBusy().

◆ listPhotos()

void DigikamGenericPiwigoPlugin::PiwigoTalker::listPhotos ( const QString &  albumName)

◆ loggedIn()

bool DigikamGenericPiwigoPlugin::PiwigoTalker::loggedIn ( ) const

◆ login()

void DigikamGenericPiwigoPlugin::PiwigoTalker::login ( const QUrl &  url,
const QString &  name,
const QString &  passwd 
)

References GE_LOGIN, and signalBusy().

◆ signalAddPhotoFailed

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalAddPhotoFailed ( const QString &  msg)
signal

◆ signalAddPhotoSucceeded

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalAddPhotoSucceeded ( )
signal

◆ signalAlbums

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalAlbums ( const QList< PiwigoAlbum > &  albumList)
signal

◆ signalBusy

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalBusy ( bool  val)
signal

Referenced by addPhoto(), listAlbums(), and login().

◆ signalError

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalError ( const QString &  msg)
signal

◆ signalLoginFailed

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalLoginFailed ( const QString &  msg)
signal

◆ signalProgressInfo

void DigikamGenericPiwigoPlugin::PiwigoTalker::signalProgressInfo ( const QString &  msg)
signal

Referenced by addPhoto().


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