74
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: A utility class for parsing URI strings
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef NMURIPARSER_H_
|
|
18 |
#define NMURIPARSER_H_
|
|
19 |
|
|
20 |
#include <QObject>
|
|
21 |
#include <QStringList>
|
|
22 |
|
|
23 |
#include "emailutilitiesdef.h"
|
|
24 |
|
|
25 |
/*!
|
|
26 |
\class NmUriParser
|
|
27 |
\brief A helper class for parsing URI strings
|
|
28 |
*/
|
|
29 |
class EMAIL_UTILITIES_EXPORT NmUriParser
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
|
|
33 |
NmUriParser();
|
|
34 |
~NmUriParser();
|
|
35 |
|
|
36 |
bool extractData(const QString &data);
|
|
37 |
void resetData();
|
|
38 |
|
|
39 |
QString subject() const;
|
|
40 |
QStringList toAddresses() const;
|
|
41 |
QStringList ccAddresses() const;
|
|
42 |
QStringList bccAddresses() const;
|
|
43 |
QString bodyText() const;
|
|
44 |
|
|
45 |
private:
|
|
46 |
|
|
47 |
void addAddressesToList(QString &addresses, QStringList &list);
|
|
48 |
|
|
49 |
private: // Data
|
|
50 |
|
|
51 |
QString mSubject;
|
|
52 |
QStringList mToAddresses;
|
|
53 |
QStringList mCcAddresses;
|
|
54 |
QStringList mBccAddresses;
|
|
55 |
QString mBodyText;
|
|
56 |
};
|
|
57 |
#endif /* NMURIPARSER_H_*/
|