emailservices/nmclientapi/src/nmapimessagecontent.cpp
author hgs
Wed, 15 Sep 2010 12:09:55 +0300
changeset 68 83cc6bae1de8
child 74 6c59112cfd31
permissions -rw-r--r--
201037
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
68
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*       Email message content implementation.
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#include "nmapiheaders.h"
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
namespace EmailClientApi
hgs
parents:
diff changeset
    21
{
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
/*!
hgs
parents:
diff changeset
    24
   Constructor for NmApiMessageContent
hgs
parents:
diff changeset
    25
 */
hgs
parents:
diff changeset
    26
NmApiMessageContent::NmApiMessageContent()
hgs
parents:
diff changeset
    27
{
hgs
parents:
diff changeset
    28
    NM_FUNCTION;
hgs
parents:
diff changeset
    29
    d = new NmApiMessageContentPrivate();
hgs
parents:
diff changeset
    30
}
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
/*!
hgs
parents:
diff changeset
    33
   Destructor for NmApiMessageContent
hgs
parents:
diff changeset
    34
 */
hgs
parents:
diff changeset
    35
NmApiMessageContent::~NmApiMessageContent()
hgs
parents:
diff changeset
    36
{
hgs
parents:
diff changeset
    37
    NM_FUNCTION;
hgs
parents:
diff changeset
    38
}
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
/*!
hgs
parents:
diff changeset
    41
   Getter for content type
hgs
parents:
diff changeset
    42
 */
hgs
parents:
diff changeset
    43
QString NmApiMessageContent::contentType() const
hgs
parents:
diff changeset
    44
{
hgs
parents:
diff changeset
    45
    NM_FUNCTION;
hgs
parents:
diff changeset
    46
    return d->contentType();
hgs
parents:
diff changeset
    47
}
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
/*!
hgs
parents:
diff changeset
    50
   Getter for is complete
hgs
parents:
diff changeset
    51
 */
hgs
parents:
diff changeset
    52
bool NmApiMessageContent::isComplete()
hgs
parents:
diff changeset
    53
{
hgs
parents:
diff changeset
    54
    NM_FUNCTION;
hgs
parents:
diff changeset
    55
    return d->isComplete();
hgs
parents:
diff changeset
    56
}
hgs
parents:
diff changeset
    57
hgs
parents:
diff changeset
    58
/*!
hgs
parents:
diff changeset
    59
   Getter for size
hgs
parents:
diff changeset
    60
 */
hgs
parents:
diff changeset
    61
quint32 NmApiMessageContent::size() const
hgs
parents:
diff changeset
    62
{
hgs
parents:
diff changeset
    63
    NM_FUNCTION;
hgs
parents:
diff changeset
    64
    return d->size();
hgs
parents:
diff changeset
    65
}
hgs
parents:
diff changeset
    66
hgs
parents:
diff changeset
    67
/*!
hgs
parents:
diff changeset
    68
   Getter for id
hgs
parents:
diff changeset
    69
 */
hgs
parents:
diff changeset
    70
quint64 NmApiMessageContent::id() const
hgs
parents:
diff changeset
    71
{
hgs
parents:
diff changeset
    72
     NM_FUNCTION;
hgs
parents:
diff changeset
    73
     return d->id();
hgs
parents:
diff changeset
    74
}
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
/*!
hgs
parents:
diff changeset
    77
   Setter for content type
hgs
parents:
diff changeset
    78
 */
hgs
parents:
diff changeset
    79
void NmApiMessageContent::setContentType(const QString &contentType)
hgs
parents:
diff changeset
    80
{
hgs
parents:
diff changeset
    81
    NM_FUNCTION;
hgs
parents:
diff changeset
    82
    d->setContentType(contentType);
hgs
parents:
diff changeset
    83
}
hgs
parents:
diff changeset
    84
hgs
parents:
diff changeset
    85
/*!
hgs
parents:
diff changeset
    86
   Setter for is complete
hgs
parents:
diff changeset
    87
 */
hgs
parents:
diff changeset
    88
void NmApiMessageContent::setComplete(bool complete)
hgs
parents:
diff changeset
    89
{
hgs
parents:
diff changeset
    90
    NM_FUNCTION;
hgs
parents:
diff changeset
    91
    d->setComplete(complete);
hgs
parents:
diff changeset
    92
}
hgs
parents:
diff changeset
    93
hgs
parents:
diff changeset
    94
/*!
hgs
parents:
diff changeset
    95
   Setter for size
hgs
parents:
diff changeset
    96
 */
hgs
parents:
diff changeset
    97
void NmApiMessageContent::setSize(quint32 size)
hgs
parents:
diff changeset
    98
{
hgs
parents:
diff changeset
    99
    NM_FUNCTION;
hgs
parents:
diff changeset
   100
    d->setSize(size);
hgs
parents:
diff changeset
   101
}
hgs
parents:
diff changeset
   102
hgs
parents:
diff changeset
   103
/*!
hgs
parents:
diff changeset
   104
   Setter for id
hgs
parents:
diff changeset
   105
 */
hgs
parents:
diff changeset
   106
void NmApiMessageContent::setId(quint64 id)
hgs
parents:
diff changeset
   107
{
hgs
parents:
diff changeset
   108
    NM_FUNCTION;
hgs
parents:
diff changeset
   109
    d->setId(id);
hgs
parents:
diff changeset
   110
}
hgs
parents:
diff changeset
   111
hgs
parents:
diff changeset
   112
}