diff -r cdae8c6c3876 -r 4e8ebe173323 homescreenapp/hsutils/inc/hstitleresolver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homescreenapp/hsutils/inc/hstitleresolver.h Mon May 03 12:24:59 2010 +0300 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2010 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: +* +*/ +#ifndef HSTITLERESOLVER_H +#define HSTITLERESOLVER_H + +#include +#include "hsdeviceinfolistener.h" +#include "hsutils_global.h" +#include "hstest_global.h" +HOMESCREEN_TEST_CLASS(t_hsUtils) + +class HSUTILS_EXPORT HsTitleResolver : public QObject +{ + Q_OBJECT + +public: + HsTitleResolver(QObject *parent = 0); + ~HsTitleResolver(); +public: + QString title(); +signals: + void titleChanged(const QString &name); +private slots: + void onNetworkNameChanged(const QString &name); + void onStatusChanged(HsDeviceInfoListener::HsDeviceInfoStatus status); +private: + QString mOperatorName; + QString mOfflineText; + QString mNoServiceText; + HsDeviceInfoListener *mDeviceInfoListener; + HsDeviceInfoListener::HsDeviceInfoStatus mCurrentStatus; + HOMESCREEN_TEST_FRIEND_CLASS(t_hsUtils) +}; + +#endif // HSTITLERESOLVER_H