logsui/logsapp/tsrc/ut_logsapp/logsengine_stub/logscontact.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:49:12 +0300
changeset 14 f27aebe284bb
parent 2 7119b73b84d6
permissions -rw-r--r--
Revision: 201027 Kit: 201033

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

//USER

#include "logscontact.h"
//SYSTEM

static LogsContact::RequestType logstTestRequestType = LogsContact::TypeLogsContactSave;
bool LogsContact::mServiceRequestCanceled = false;

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
LogsContact::LogsContact()
{
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
LogsContact::LogsContact(const QString& number): mNumber(number)
{
}

// -----------------------------------------------------------------------------
// 
// -----------------------------------------------------------------------------
//
LogsContact::~LogsContact()
{
}
    
// ----------------------------------------------------------------------------
// 
// ----------------------------------------------------------------------------
//
LogsContact::RequestType LogsContact::allowedRequestType()
{
    return logstTestRequestType;
}    

// ----------------------------------------------------------------------------
//
// ----------------------------------------------------------------------------
//
bool LogsContact::open()
{
    return false;
}

// ----------------------------------------------------------------------------
//
// ----------------------------------------------------------------------------
//
bool LogsContact::addNew()
{
    return false;
}

// ----------------------------------------------------------------------------
//
// ----------------------------------------------------------------------------
//
bool LogsContact::updateExisting()
{
    return false;
}

void LogsContact::setNextRequestType(LogsContact::RequestType type)
{
    logstTestRequestType = type;
}
void LogsContact::reset()
{
    logstTestRequestType = LogsContact::TypeLogsContactSave;
    mServiceRequestCanceled = false;
}

void LogsContact::cancelServiceRequest()
{
    mServiceRequestCanceled = true;
}