43 NmAddressValidationType type = NmDefault ); |
45 NmAddressValidationType type = NmDefault ); |
44 static bool isValidEmailAddress( const QString &emailAddress ); |
46 static bool isValidEmailAddress( const QString &emailAddress ); |
45 static QString addressToDisplayName( const NmAddress &address ); |
47 static QString addressToDisplayName( const NmAddress &address ); |
46 static bool parseEmailAddress( const QString &emailAddress, NmAddress &address ); |
48 static bool parseEmailAddress( const QString &emailAddress, NmAddress &address ); |
47 static QString cleanupDisplayName( const QString &displayName ); |
49 static QString cleanupDisplayName( const QString &displayName ); |
48 static int openFile(XQSharableFile &file); |
50 static int openFile(XQSharableFile &file, QObject* listener = 0); |
|
51 static int openAttachment(NmMessagePart *part, |
|
52 QList<QString> &tmpFiles, |
|
53 QObject* listener = 0); |
|
54 static void deleteTempFiles(QList<QString> &tmpFiles); |
49 static QString truncate( const QString &string, int length ); |
55 static QString truncate( const QString &string, int length ); |
50 static QString attachmentSizeString(const int sizeInBytes); |
56 static QString attachmentSizeString(const int sizeInBytes); |
51 static void displayErrorNote(QString noteText); |
57 static void displayErrorNote(QString noteText); |
52 static HbMessageBox *displayQuestionNote(QString noteText, |
58 static HbMessageBox *displayQuestionNote(QString noteText, |
53 QObject *receiver = 0, |
59 QObject *receiver = 0, |
56 static HbMessageBox *displayWarningNote(QString noteText, |
62 static HbMessageBox *displayWarningNote(QString noteText, |
57 QObject *receiver = 0, |
63 QObject *receiver = 0, |
58 const char *member = 0); |
64 const char *member = 0); |
59 static QString createReplyHeader(const NmMessageEnvelope &env); |
65 static QString createReplyHeader(const NmMessageEnvelope &env); |
60 static NmAddress *qstringToNmAddress(QString str); |
66 static NmAddress *qstringToNmAddress(QString str); |
|
67 static QList<NmAddress*> *qstringListToNmAddressList(const QStringList &strlist); |
61 }; |
68 }; |
62 |
69 |
63 #endif /* NMUTILITIES_H_ */ |
70 #endif /* NMUTILITIES_H_ */ |