|
mysocials-core 1.0
|
A class for album information storage. More...
#include <album.h>
Public Member Functions | |
| Album () | |
| Constructs an empty album. | |
| Album (const Album &src) | |
| Constructs a copy of album. | |
| ~Album () | |
| A destructor. | |
| QDomElement | toQDomElement (QDomDocument &doc) const |
| Store album data to XML format. | |
| PhotoList | getPhotoList () const |
| Loads photo list into Album from cache file. | |
| Album & | operator= (const Album &) |
| Overloads assignment operator for Album classes. | |
Static Public Member Functions | |
| static Album | fromQDomElement (const QDomElement &fr, const QString &accountId, const QString &friendId) |
| Loads album from XML struct. | |
| static void | setPhotoList (const PhotoList list, const QString accountId, const QString friendId, const QString albumId) |
| Set photo list and store it to cache file. | |
Public Attributes | |
| QString | albumId |
| QString | ownerId |
| QString | title |
| QString | description |
| QString | time_create |
| QString | time_update |
| int | size |
| QString | icon |
| QString | icon_url |
| QString | accountId |
A class for album information storage.
| Album::Album | ( | const Album & | src | ) |
| Album Album::fromQDomElement | ( | const QDomElement & | fr, |
| const QString & | accountId, | ||
| const QString & | friendId | ||
| ) | [static] |
Loads album from XML struct.
| fr | XML struct with album data |
| accountId | ID of account to which friend belongs |
| friendId | ID of the owner of the album |
| PhotoList Album::getPhotoList | ( | ) | const |
Loads photo list into Album from cache file.
| void Album::setPhotoList | ( | const PhotoList | list, |
| const QString | accountId, | ||
| const QString | friendId, | ||
| const QString | albumId | ||
| ) | [static] |
Set photo list and store it to cache file.
| list | list of photos to store |
| accountId | account id for which need to save phot list |
| friendId | owner id of the images |
| albumId | id of saving album |
| QDomElement Album::toQDomElement | ( | QDomDocument & | doc | ) | const |
Store album data to XML format.
| doc | root XML document |
| QString Album::accountId |
account id which belongs to the album (not stored in cache)
| QString Album::albumId |
album ID from service
| QString Album::description |
album description (optional)
| QString Album::icon |
Full path in system to the file with album's icon
| QString Album::icon_url |
Permalink on the file with album's icon
| QString Album::ownerId |
ID of album owner
| int Album::size |
Number of images in this album
| QString Album::time_create |
Unix timestamp when the album was created.
| QString Album::time_update |
Unix timestamp when the album was modifed.
| QString Album::title |
album title (optional)
1.7.3