digiKam
DigikamGenericRajcePlugin Namespace Reference

Classes

class  AddPhotoCommand
 
class  AlbumListCommand
 
class  CloseAlbumCommand
 
class  CreateAlbumCommand
 
class  LoginCommand
 
class  OpenAlbumCommand
 
struct  RajceAlbum
 
class  RajceCommand
 
class  RajceMPForm
 
class  RajceNewAlbumDlg
 
class  RajcePlugin
 
class  RajceSession
 
class  RajceTalker
 
class  RajceWidget
 
class  RajceWindow
 

Enumerations

enum  RajceCommandType {
  Login = 0 , Logout , ListAlbums , CreateAlbum ,
  OpenAlbum , CloseAlbum , AddPhoto
}
 
enum  RajceErrorCode {
  UnknownError = 1 , InvalidCommand , InvalidCredentials , InvalidSessionToken ,
  InvalidOrRepeatedColumnName , InvalidAlbumId , AlbumDoesntExistOrNoPrivileges , InvalidAlbumToken ,
  AlbumNameEmpty , FailedToCreateAlbum , AlbumDoesntExist , UnknownApplication ,
  InvalidApplicationKey , FileNotAttached , NewerVersionExists , SavingFileFailed ,
  UnsupportedFileExtension , UnknownClientVersion , NonexistentTarget
}
 

Functions

const QUrl RAJCE_URL (QLatin1String("https://www.rajce.idnes.cz/liveAPI/index.php"))
 
PreparedImage s_prepareImageForUpload (const QString &saveDir, const QImage &img, const QString &imagePath, unsigned maxDimension, unsigned thumbDimension, int jpgQuality)
 

Variables

const unsigned THUMB_SIZE = 100
 

Enumeration Type Documentation

◆ RajceCommandType

Enumerator
Login 
Logout 
ListAlbums 
CreateAlbum 
OpenAlbum 
CloseAlbum 
AddPhoto 

◆ RajceErrorCode

Enumerator
UnknownError 

1 Unknown error.

Taken from the semi-official documentation: https://docs.google.com/View?id=ajkd99k8zcw6_120ctqvnjd5#Chybov_k_dy

InvalidCommand 

2 Invalid command.

InvalidCredentials 

3 Invalid credentials.

InvalidSessionToken 

4 Invalid session token.

InvalidOrRepeatedColumnName 

5 Unknown or repeated column name {colName}.

InvalidAlbumId 

6 Invalid album ID.

AlbumDoesntExistOrNoPrivileges 

7 The album doesn't exist or is not owned by the logged in user.

InvalidAlbumToken 

8 Invalid album token.

AlbumNameEmpty 

9 Album can't have an empty name.

FailedToCreateAlbum 

10 Failed to create an album (probably a serverside error).

AlbumDoesntExist 

11 Album doesn't exist.

UnknownApplication 

12 Nonexistent application.

InvalidApplicationKey 

13 Invalid application key.

FileNotAttached 

14 A file is not attached.

NewerVersionExists 

15 A newer version already exists {version}.

SavingFileFailed 

16 Failed to save the file.

UnsupportedFileExtension 

17 Unsupported file extension {extension}.

UnknownClientVersion 

18 Unknown client version.

NonexistentTarget 

19 Unknown target.

Function Documentation

◆ RAJCE_URL()

const QUrl DigikamGenericRajcePlugin::RAJCE_URL ( QLatin1String("https://www.rajce.idnes.cz/liveAPI/index.php")  )

◆ s_prepareImageForUpload()

PreparedImage DigikamGenericRajcePlugin::s_prepareImageForUpload ( const QString &  saveDir,
const QImage &  img,
const QString &  imagePath,
unsigned  maxDimension,
unsigned  thumbDimension,
int  jpgQuality 
)

Variable Documentation

◆ THUMB_SIZE

const unsigned DigikamGenericRajcePlugin::THUMB_SIZE = 100