logsui/logsengine/src/logsconfigurationparams.cpp
author hgs
Mon, 23 Aug 2010 18:14:51 +0300
changeset 15 76d2cf7a585e
parent 2 7119b73b84d6
permissions -rw-r--r--
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 "logsconfigurationparams.h"
#include "logslogger.h"

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
LogsConfigurationParams::LogsConfigurationParams( QObject* parent ) : 
    QObject(parent), mListItemTextWidth(0), mLocaleChanged(false)
{
    
    LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::LogsConfigurationParams()" )
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
LogsConfigurationParams& LogsConfigurationParams::operator=( 
    const LogsConfigurationParams& params )
{
    
    LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::operator=()" )
    mListItemTextWidth = params.mListItemTextWidth;
    mLocaleChanged = params.mLocaleChanged;
    return *this;
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
LogsConfigurationParams::~LogsConfigurationParams()
{
    LOGS_QDEBUG( "logs [ENG] <-> LogsConfigurationParams::~LogsConfigurationParams()" )
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
void LogsConfigurationParams::setListItemTextWidth(int width)
{
    mListItemTextWidth = width;
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
int LogsConfigurationParams::listItemTextWidth() const
{
    return mListItemTextWidth;
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
void LogsConfigurationParams::setLocaleChanged(bool changed)
{
    mLocaleChanged = changed;
}

// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
bool LogsConfigurationParams::localeChanged() const
{
    return mLocaleChanged;
}

// End of file