digiKam
DigikamGenericSmugPlugin::SmugTalker Class Reference
+ Inheritance diagram for DigikamGenericSmugPlugin::SmugTalker:

Signals

void signalAddPhotoDone (int errCode, const QString &errMsg)
 
void signalBusy (bool val)
 
void signalCreateAlbumDone (int errCode, const QString &errMsg, qint64 newAlbumID, const QString &newAlbumKey)
 
void signalGetPhotoDone (int errCode, const QString &errMsg, const QByteArray &photoData)
 
void signalLinkingSucceeded ()
 
void signalListAlbumsDone (int errCode, const QString &errMsg, const QList< SmugAlbum > &albumsList)
 
void signalListAlbumTmplDone (int errCode, const QString &errMsg, const QList< SmugAlbumTmpl > &albumTList)
 
void signalListPhotosDone (int errCode, const QString &errMsg, const QList< SmugPhoto > &photosList)
 
void signalLoginDone (int errCode, const QString &errMsg)
 
void signalLoginProgress (int step, int maxStep=0, const QString &label=QString())
 

Public Member Functions

bool addPhoto (const QString &imgPath, qint64 albumID, const QString &albumKey, const QString &caption)
 
void cancel ()
 
void createAlbum (const SmugAlbum &album)
 
QString createAlbumName (const QString &word)
 
QString createAlbumUrl (const QString &name)
 
void getLoginedUser ()
 
void getPhoto (const QString &imgPath)
 
SmugUser getUser () const
 
void link ()
 
void listAlbums (const QString &nickName=QString())
 
void listAlbumTmpl ()
 
void listPhotos (qint64 albumID, const QString &albumKey, const QString &albumPassword=QString(), const QString &sitePassword=QString())
 
bool loggedIn () const
 
void login ()
 
void logout ()
 
void removeUserAccount (const QString &userName)
 
 SmugTalker (DInfoInterface *const iface, QWidget *const parent)
 
void unlink ()
 
 ~SmugTalker () override
 

Constructor & Destructor Documentation

◆ SmugTalker()

DigikamGenericSmugPlugin::SmugTalker::SmugTalker ( DInfoInterface *const  iface,
QWidget *const  parent 
)
explicit

◆ ~SmugTalker()

DigikamGenericSmugPlugin::SmugTalker::~SmugTalker ( )
override

Member Function Documentation

◆ addPhoto()

bool DigikamGenericSmugPlugin::SmugTalker::addPhoto ( const QString &  imgPath,
qint64  albumID,
const QString &  albumKey,
const QString &  caption 
)

◆ cancel()

void DigikamGenericSmugPlugin::SmugTalker::cancel ( )

References signalBusy().

◆ createAlbum()

void DigikamGenericSmugPlugin::SmugTalker::createAlbum ( const SmugAlbum album)

Something must to be remembered here is that we HAVE TO start a name with upper case !!! And url name with '-' instead of space

References createAlbumName(), createAlbumUrl(), signalBusy(), and DigikamGenericSmugPlugin::SmugAlbum::title.

◆ createAlbumName()

QString DigikamGenericSmugPlugin::SmugTalker::createAlbumName ( const QString &  word)

(Trung) There are some characters not valid for album title (e.g "_") and for url (e.g "-") that are not mentioned on the API page, so if found, that has to be treated here

Referenced by createAlbum(), and createAlbumUrl().

◆ createAlbumUrl()

QString DigikamGenericSmugPlugin::SmugTalker::createAlbumUrl ( const QString &  name)

References createAlbumName().

Referenced by createAlbum().

◆ getLoginedUser()

void DigikamGenericSmugPlugin::SmugTalker::getLoginedUser ( )

◆ getPhoto()

void DigikamGenericSmugPlugin::SmugTalker::getPhoto ( const QString &  imgPath)

References signalBusy().

◆ getUser()

SmugUser DigikamGenericSmugPlugin::SmugTalker::getUser ( ) const

◆ link()

void DigikamGenericSmugPlugin::SmugTalker::link ( )

TODO: Porting to O2

Referenced by login().

◆ listAlbums()

void DigikamGenericSmugPlugin::SmugTalker::listAlbums ( const QString &  nickName = QString())

References signalBusy().

◆ listAlbumTmpl()

void DigikamGenericSmugPlugin::SmugTalker::listAlbumTmpl ( )

References signalBusy().

◆ listPhotos()

void DigikamGenericSmugPlugin::SmugTalker::listPhotos ( qint64  albumID,
const QString &  albumKey,
const QString &  albumPassword = QString(),
const QString &  sitePassword = QString() 
)

References signalBusy().

◆ loggedIn()

bool DigikamGenericSmugPlugin::SmugTalker::loggedIn ( ) const

◆ login()

void DigikamGenericSmugPlugin::SmugTalker::login ( )

◆ logout()

void DigikamGenericSmugPlugin::SmugTalker::logout ( )

References signalBusy(), and unlink().

◆ removeUserAccount()

void DigikamGenericSmugPlugin::SmugTalker::removeUserAccount ( const QString &  userName)

◆ signalAddPhotoDone

void DigikamGenericSmugPlugin::SmugTalker::signalAddPhotoDone ( int  errCode,
const QString &  errMsg 
)
signal

◆ signalBusy

void DigikamGenericSmugPlugin::SmugTalker::signalBusy ( bool  val)
signal

◆ signalCreateAlbumDone

void DigikamGenericSmugPlugin::SmugTalker::signalCreateAlbumDone ( int  errCode,
const QString &  errMsg,
qint64  newAlbumID,
const QString &  newAlbumKey 
)
signal

◆ signalGetPhotoDone

void DigikamGenericSmugPlugin::SmugTalker::signalGetPhotoDone ( int  errCode,
const QString &  errMsg,
const QByteArray &  photoData 
)
signal

◆ signalLinkingSucceeded

void DigikamGenericSmugPlugin::SmugTalker::signalLinkingSucceeded ( )
signal

Referenced by login(), and SmugTalker().

◆ signalListAlbumsDone

void DigikamGenericSmugPlugin::SmugTalker::signalListAlbumsDone ( int  errCode,
const QString &  errMsg,
const QList< SmugAlbum > &  albumsList 
)
signal

◆ signalListAlbumTmplDone

void DigikamGenericSmugPlugin::SmugTalker::signalListAlbumTmplDone ( int  errCode,
const QString &  errMsg,
const QList< SmugAlbumTmpl > &  albumTList 
)
signal

◆ signalListPhotosDone

void DigikamGenericSmugPlugin::SmugTalker::signalListPhotosDone ( int  errCode,
const QString &  errMsg,
const QList< SmugPhoto > &  photosList 
)
signal

◆ signalLoginDone

void DigikamGenericSmugPlugin::SmugTalker::signalLoginDone ( int  errCode,
const QString &  errMsg 
)
signal

◆ signalLoginProgress

void DigikamGenericSmugPlugin::SmugTalker::signalLoginProgress ( int  step,
int  maxStep = 0,
const QString &  label = QString() 
)
signal

Referenced by login().

◆ unlink()

void DigikamGenericSmugPlugin::SmugTalker::unlink ( )

Referenced by logout().


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