emailservices/nmclientapi/src/nmapioperation.cpp
changeset 74 6c59112cfd31
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
       
     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 related operations
       
    16  */
       
    17 
       
    18 #include "nmapiheaders.h"
       
    19 
       
    20 namespace EmailClientApi {
       
    21 
       
    22 NmApiOperation::NmApiOperation(QObject *parent, NmApiOperationStatus status, NmApiOperationType operationType)
       
    23     :QObject(parent),
       
    24      mStatus(status),
       
    25      mOperationType(operationType)
       
    26 {
       
    27     NM_FUNCTION;
       
    28     QMetaObject::invokeMethod(this, "start", Qt::QueuedConnection);
       
    29 }
       
    30 
       
    31 NmApiOperation::~NmApiOperation()
       
    32 {
       
    33     NM_FUNCTION;
       
    34 }
       
    35 
       
    36 /*!
       
    37  \fn status 
       
    38  \return Operation status.
       
    39  */
       
    40 NmApiOperationStatus NmApiOperation::status() const 
       
    41 {
       
    42     NM_FUNCTION;
       
    43     return mStatus;
       
    44 }
       
    45  
       
    46 /*!
       
    47  \fn operation 
       
    48  \return Operation type.
       
    49  */
       
    50 NmApiOperationType NmApiOperation::operation() const
       
    51 {
       
    52     NM_FUNCTION;
       
    53     return mOperationType;
       
    54 }
       
    55 
       
    56 }