26 #ifndef LOCALIZEDSTRING_H
27 #define LOCALIZEDSTRING_H
32 #ifndef NO_AUTOLOCALIZATION
34 # undef QT_TR_NOOP_UTF8
35 # undef QT_TRANSLATE_NOOP
36 # undef QT_TRANSLATE_NOOP_UTF8
37 # undef QT_TRANSLATE_NOOP3
38 # undef QT_TRANSLATE_NOOP3_UTF8
39 # define QT_TR_NOOP(x) qutim_sdk_0_3::LocalizedString(staticMetaObject.className(), x)
40 # define QT_TR_NOOP_UTF8(x) qutim_sdk_0_3::LocalizedString(staticMetaObject.className(), x)
41 # define QT_TRANSLATE_NOOP(scope, x) qutim_sdk_0_3::LocalizedString(scope, x)
42 # define QT_TRANSLATE_NOOP_UTF8(scope, x) qutim_sdk_0_3::LocalizedString(scope, x)
43 # define QT_TRANSLATE_NOOP3(scope,x,comment) qutim_sdk_0_3::LocalizedString(scope, x)
44 # define QT_TRANSLATE_NOOP3_UTF8(scope,x,comment) qutim_sdk_0_3::LocalizedString(scope, x)
45 #endif // NO_AUTOLOCALIZATION
56 LocalizedString(
const char *cxt,
const QByteArray &str) : m_ctx(cxt), m_str(str) {}
57 LocalizedString(
const char *cxt,
const char *str,
int len) : m_ctx(cxt), m_str(str, len) {}
58 LocalizedString(
const char *cxt,
const char *str) : m_ctx(cxt), m_str(str, qstrlen(str)) {}
61 operator QString()
const {
return toString(); }
62 QString toString()
const;
66 QByteArray
context()
const {
return m_ctx; }
67 bool isNull()
const {
return m_str.isNull(); }
70 inline bool operator <(
const LocalizedString &s)
const {
return m_str < s.m_str; }
88 #endif // LOCALIZEDSTRING_H
bool operator>=(const LocalizedString &s) const
Definition: localizedstring.h:74
QByteArray original() const
Definition: localizedstring.h:64
#define LIBQUTIM_EXPORT
Definition: libqutim_global.h:45
bool isNull() const
Definition: localizedstring.h:67
Definition: abstractsearchrequest.h:33
QList< LocalizedString > LocalizedStringList
Definition: localizedstring.h:82
Q_DECLARE_METATYPE(qutim_sdk_0_3::LocalizedStringList)
void setOriginal(const QByteArray &str)
Definition: localizedstring.h:63
LocalizedString(const char *str)
Definition: localizedstring.h:53
LocalizedString(const char *cxt, const char *str)
Definition: localizedstring.h:58
LocalizedString(const QString &str)
Definition: localizedstring.h:55
LocalizedString(const LocalizedString &other)
Definition: localizedstring.h:59
bool operator==(const LocalizedString &s) const
Definition: localizedstring.h:69
LocalizedString(const QByteArray &str)
Definition: localizedstring.h:54
Definition: localizedstring.h:49
void setContext(const QByteArray &ctx)
Definition: localizedstring.h:65
LocalizedString()
Definition: localizedstring.h:52
LocalizedString(const char *cxt, const char *str, int len)
Definition: localizedstring.h:57
QByteArray context() const
Definition: localizedstring.h:66
LocalizedString(const char *cxt, const QByteArray &str)
Definition: localizedstring.h:56
bool operator!=(const LocalizedString &s) const
Definition: localizedstring.h:72
Q_DECL_IMPORT QDataStream & operator>>(QDataStream &in, qutim_sdk_0_3::Status &status)
Q_DECL_IMPORT QDebug operator<<(QDebug, const Event &)
bool operator<=(const LocalizedString &s) const
Definition: localizedstring.h:73