messagingapp/msgappfw/msghistory/src/msghistory.cpp
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 /*
       
     2  * Copyright (c) 2009 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  *
       
    16  */
       
    17 
       
    18 #include <msghistory.h>
       
    19 #include "msghistoryimpl.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // Default Constructor.
       
    23 // ---------------------------------------------------------------------------
       
    24 MsgHistory::MsgHistory(QObject* parent)
       
    25 :QObject(parent)
       
    26     {
       
    27     d_ptr = new MsgHistoryImpl(this);
       
    28     }
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // Destructor.
       
    32 // ---------------------------------------------------------------------------
       
    33 MsgHistory::~MsgHistory()
       
    34     {
       
    35     //do nothing
       
    36     }
       
    37 
       
    38 //---------------------------------------------------------------
       
    39 // MsgHistory::getMessages
       
    40 // @see header file
       
    41 //---------------------------------------------------------------
       
    42 bool MsgHistory::getMessages(int contactId)
       
    43     {
       
    44     return (d_ptr->getMessages(contactId));
       
    45     }
       
    46 
       
    47 //---------------------------------------------------------------
       
    48 // MsgHistory::clearMessages
       
    49 // @see header file
       
    50 //---------------------------------------------------------------
       
    51 bool MsgHistory::clearMessages(int contactId)
       
    52     {
       
    53     return (d_ptr->clearMessages(contactId));
       
    54     }
       
    55 
       
    56 //---------------------------------------------------------------
       
    57 // MsgHistory::markRead
       
    58 // @see header file
       
    59 //---------------------------------------------------------------
       
    60 bool MsgHistory::markRead(int contactId)
       
    61     {    
       
    62     return (d_ptr->markRead(contactId));
       
    63     }
       
    64 
       
    65 //---------------------------------------------------------------
       
    66 // MsgHistory::subscribe
       
    67 // @see header file
       
    68 //---------------------------------------------------------------
       
    69 bool MsgHistory::subscribe(int contactId)
       
    70     {    
       
    71     return (d_ptr->subscribe(contactId));
       
    72     }
       
    73 
       
    74 //---------------------------------------------------------------
       
    75 // MsgHistory::unSubscribe
       
    76 // @see header file
       
    77 //---------------------------------------------------------------
       
    78 bool MsgHistory::unSubscribe(int contactId)
       
    79     {   
       
    80     return (d_ptr->unSubscribe(contactId));
       
    81     }