equal
deleted
inserted
replaced
|
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 attachment private implementation. |
|
16 */ |
|
17 |
|
18 #include "nmapiheaders.h" |
|
19 #include <xqsharablefile.h> |
|
20 |
|
21 namespace EmailClientApi |
|
22 { |
|
23 |
|
24 /*! |
|
25 Class constructor. |
|
26 */ |
|
27 NmApiAttachmentPrivate::NmApiAttachmentPrivate() |
|
28 { |
|
29 NM_FUNCTION; |
|
30 } |
|
31 |
|
32 /*! |
|
33 Class destructor. |
|
34 */ |
|
35 NmApiAttachmentPrivate::~NmApiAttachmentPrivate() |
|
36 { |
|
37 NM_FUNCTION; |
|
38 } |
|
39 |
|
40 /*! |
|
41 Getter for filename |
|
42 */ |
|
43 QString NmApiAttachmentPrivate::fileName() |
|
44 { |
|
45 NM_FUNCTION; |
|
46 return mFilename; |
|
47 } |
|
48 |
|
49 /*! |
|
50 Getter for file |
|
51 */ |
|
52 XQSharableFile NmApiAttachmentPrivate::file() |
|
53 { |
|
54 NM_FUNCTION; |
|
55 XQSharableFile *file = new XQSharableFile(); |
|
56 file->open(mFilename); |
|
57 return *file; |
|
58 } |
|
59 |
|
60 /*! |
|
61 Setter for filename |
|
62 */ |
|
63 void NmApiAttachmentPrivate::setFileName(const QString &fileName) |
|
64 { |
|
65 NM_FUNCTION; |
|
66 mFilename = fileName; |
|
67 } |
|
68 |
|
69 } |