homescreenapp/hsutils/inc/hstitleresolver.h
changeset 39 4e8ebe173323
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
       
     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 *
       
    16 */
       
    17 #ifndef HSTITLERESOLVER_H
       
    18 #define HSTITLERESOLVER_H
       
    19 
       
    20 #include <QObject>
       
    21 #include "hsdeviceinfolistener.h"
       
    22 #include "hsutils_global.h"
       
    23 #include "hstest_global.h"
       
    24 HOMESCREEN_TEST_CLASS(t_hsUtils)
       
    25 
       
    26 class HSUTILS_EXPORT HsTitleResolver : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     HsTitleResolver(QObject *parent = 0);
       
    32     ~HsTitleResolver();
       
    33 public:
       
    34     QString title();
       
    35 signals:
       
    36     void titleChanged(const QString &name);
       
    37 private slots:
       
    38     void onNetworkNameChanged(const QString &name);
       
    39     void onStatusChanged(HsDeviceInfoListener::HsDeviceInfoStatus status);
       
    40 private:
       
    41     QString mOperatorName;
       
    42     QString mOfflineText;
       
    43     QString mNoServiceText;
       
    44     HsDeviceInfoListener *mDeviceInfoListener;
       
    45     HsDeviceInfoListener::HsDeviceInfoStatus mCurrentStatus;
       
    46     HOMESCREEN_TEST_FRIEND_CLASS(t_hsUtils)
       
    47 };
       
    48 
       
    49 #endif // HSTITLERESOLVER_H