68
|
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:
|
|
15 |
* Email message attachment implementation.
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "nmapiheaders.h"
|
|
19 |
|
|
20 |
namespace EmailClientApi
|
|
21 |
{
|
|
22 |
/*!
|
|
23 |
Class constructor.
|
|
24 |
*/
|
|
25 |
NmApiAttachment::NmApiAttachment()
|
|
26 |
{
|
|
27 |
NM_FUNCTION;
|
|
28 |
d = new NmApiAttachmentPrivate();
|
|
29 |
}
|
|
30 |
|
|
31 |
/*!
|
74
|
32 |
Class copy constructor.
|
|
33 |
*/
|
|
34 |
NmApiAttachment::NmApiAttachment(const NmApiAttachment &attachment)
|
|
35 |
{
|
|
36 |
NM_FUNCTION;
|
|
37 |
d = attachment.d;
|
|
38 |
}
|
|
39 |
|
|
40 |
/*!
|
68
|
41 |
Class destructor.
|
|
42 |
*/
|
|
43 |
NmApiAttachment::~NmApiAttachment()
|
|
44 |
{
|
|
45 |
NM_FUNCTION;
|
|
46 |
}
|
|
47 |
|
74
|
48 |
NmApiAttachment& NmApiAttachment::operator=(const NmApiAttachment &attachment)
|
|
49 |
{
|
|
50 |
if (this == &attachment)
|
|
51 |
return *this;
|
|
52 |
|
|
53 |
d = attachment.d;
|
|
54 |
|
|
55 |
return *this;
|
|
56 |
}
|
|
57 |
|
68
|
58 |
/*!
|
|
59 |
Getter for filename
|
|
60 |
*/
|
|
61 |
QString NmApiAttachment::fileName()
|
|
62 |
{
|
|
63 |
NM_FUNCTION;
|
|
64 |
return d->fileName();
|
|
65 |
}
|
|
66 |
|
|
67 |
/*!
|
|
68 |
Getter for file
|
|
69 |
*/
|
|
70 |
XQSharableFile NmApiAttachment::file()
|
|
71 |
{
|
|
72 |
NM_FUNCTION;
|
|
73 |
return d->file();
|
|
74 |
}
|
|
75 |
|
|
76 |
/*!
|
|
77 |
Setter for filename
|
|
78 |
*/
|
|
79 |
void NmApiAttachment::setFileName(const QString &fileName)
|
|
80 |
{
|
|
81 |
NM_FUNCTION;
|
|
82 |
d->setFileName(fileName);
|
|
83 |
}
|
76
|
84 |
}
|
68
|
85 |
|
76
|
86 |
|
|
87 |
|