Utils Class Reference
Common functions and procedures.
More...
#include <utils.h>
List of all members.
Public Member Functions |
| Utils () |
| Default constructor.
|
Static Public Member Functions |
static QString | getHomeDir () |
| Get home directory.
|
static QString | getFriendsIconDir (const QString &serviceName) |
| Get path to folder for friend icons corresponded the name of service.
|
static QString | getFriendsIconDir (char *serviceName) |
| Get path to folder for friend icons corresponded the name of service.
|
static QString | getAlbumsIconDir (const QString &serviceName) |
| Get path to folder for album icons corresponded the name of service.
|
static QString | getAlbumsIconDir (char *serviceName) |
| Get path to folder for album icons corresponded the name of service.
|
static QString | getPhotoDir (const QString &serviceName) |
| Get path to folder for image thumbnails corresponded the name of service.
|
static QString | getPhotoDir (char *serviceName) |
| Get path to folder for image thumbnails corresponded the name of service.
|
static QString | getAccountDir (const QString &accountId) |
| Get absolute path to account folder.
|
static QString | decodeString (const QString &str) |
| Decode string with XML characters.
|
static QString | getDriversDir () |
| Get path to folder of MySocials drivers.
|
static bool | RemoveDirectory (QDir &aDir) |
| Recursive remove folder content.
|
static bool | RemoveFiles (QDir &aDir, const QString &filter) |
| Remove files in folder corresponded mask of file name.
|
static QString | getDataDir () |
| Get data directory.
|
static QString | getPhotoCommentListKey (const Photo &photo) |
| Generate unique key for list of comments to image.
|
static QString | getFriendKey (const QString &accountId, const QString &ownerId) |
| Generate unique key for Friend instance.
|
Detailed Description
Common functions and procedures.
This class contains common static functions which are used in other classes.
Member Function Documentation
QString Utils::decodeString |
( |
const QString & |
str |
) |
[static] |
Decode string with XML characters.
- Parameters:
-
| str | Source string with XML characters |
- Returns:
- Decoded string
QString Utils::getAccountDir |
( |
const QString & |
accountId |
) |
[static] |
Get absolute path to account folder.
- Parameters:
-
| accountId | the name of account |
- Returns:
- Absolute path to folder
QString Utils::getAlbumsIconDir |
( |
char * |
serviceName |
) |
[static] |
Get path to folder for album icons corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
QString Utils::getAlbumsIconDir |
( |
const QString & |
serviceName |
) |
[static] |
Get path to folder for album icons corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
QString Utils::getDataDir |
( |
|
) |
[static] |
Get data directory.
- Returns:
- The string with path to folder
QString Utils::getDriversDir |
( |
|
) |
[static] |
Get path to folder of MySocials drivers.
- Returns:
- Absolute path to folder
QString Utils::getFriendKey |
( |
const QString & |
accountId, |
|
|
const QString & |
ownerId | |
|
) |
| | [static] |
Generate unique key for Friend instance.
- Parameters:
-
| accountId | The ID of corresponded account. |
| ownerId | Th friend ID. |
- Returns:
- String contains Friend instance key.
QString Utils::getFriendsIconDir |
( |
char * |
serviceName |
) |
[static] |
Get path to folder for friend icons corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
QString Utils::getFriendsIconDir |
( |
const QString & |
serviceName |
) |
[static] |
Get path to folder for friend icons corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
QString Utils::getHomeDir |
( |
|
) |
[static] |
Get home directory.
Function returns user's home directory
- Returns:
- Path to folder
QString Utils::getPhotoCommentListKey |
( |
const Photo & |
photo |
) |
[static] |
Generate unique key for list of comments to image.
- Parameters:
-
- Returns:
- String contains list of comments key.
QString Utils::getPhotoDir |
( |
char * |
serviceName |
) |
[static] |
Get path to folder for image thumbnails corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
QString Utils::getPhotoDir |
( |
const QString & |
serviceName |
) |
[static] |
Get path to folder for image thumbnails corresponded the name of service.
- Parameters:
-
| serviceName | the name of service |
- Returns:
- Path to folder
bool Utils::RemoveDirectory |
( |
QDir & |
aDir |
) |
[static] |
Recursive remove folder content.
- Parameters:
-
| aDir | Folder which should be removed |
- Returns:
- True if folder removes successfully; otherwise - false
bool Utils::RemoveFiles |
( |
QDir & |
aDir, |
|
|
const QString & |
filter | |
|
) |
| | [static] |
Remove files in folder corresponded mask of file name.
- Parameters:
-
| aDir | Used folder |
| filter | The string contains a mask of file which should be removed |
- Returns:
- True if files removes successfully; otherwise - false
The documentation for this class was generated from the following files:
- src/utils/utils.h
- src/utils/utils.cpp