Home · All Namespaces · All Classes
Public Member Functions

LockScreenStatusAreaView Class Reference

#include <lockscreenstatusareaview.h>

Inheritance diagram for LockScreenStatusAreaView:
Inheritance graph
[legend]
Collaboration diagram for LockScreenStatusAreaView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LockScreenStatusAreaView (StatusArea *controller)
virtual ~LockScreenStatusAreaView ()
virtual void setGeometry (const QRectF &rect)
 REIMPLEMENTATION

Detailed Description

Lock screen status area view draws the status area for the lock screen.

Definition at line 35 of file lockscreenstatusareaview.h.


Constructor & Destructor Documentation

LockScreenStatusAreaView::LockScreenStatusAreaView ( StatusArea controller  ) 

Constructs a view for a status area in the lock screen.

Parameters:
controller the controller of this LockScreenStatusAreaView

Definition at line 31 of file lockscreenstatusareaview.cpp.

                                                                         :
    MWidgetView(controller),
    controller(controller),
    phoneNetworkIndicator(new PhoneNetworkStatusIndicator(contextFrameworkContext, controller)),
    batteryIndicator(new BatteryStatusIndicator(contextFrameworkContext, controller)),
    phoneSignalStrengthIndicator(new PhoneNetworkSignalStrengthStatusIndicator(contextFrameworkContext, controller)),
    phoneNetworkTypeIndicator(new PhoneNetworkTypeStatusIndicator(contextFrameworkContext, controller)),
    internetConnectionIndicator(new InternetConnectionStatusIndicator(contextFrameworkContext, controller)),
    bluetoothIndicator(new BluetoothStatusIndicator(contextFrameworkContext, controller)),
    gpsIndicator(new GPSStatusIndicator(contextFrameworkContext, controller)),
    presenceIndicator(new PresenceStatusIndicator(contextFrameworkContext, controller)),
    profileIndicator(new ProfileStatusIndicator(contextFrameworkContext, controller)),
    callIndicator(new CallStatusIndicator(contextFrameworkContext, controller)),
    alarmIndicator(new AlarmStatusIndicator(contextFrameworkContext, controller)),
    notifierIndicator(new NotificationStatusIndicator(&notifierNotificationSink, controller)),
    transferStatusIndicator(new TransferStatusIndicator(controller)),
    orientationChangeSignalConnected(false)
{
    // Connect related phone network indicators
    connect(phoneNetworkTypeIndicator, SIGNAL(networkAvailabilityChanged(bool)), phoneSignalStrengthIndicator, SLOT(setDisplay(bool)));

    // Put indicators into the layout
    QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(Qt::Horizontal);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->setSpacing(0);
    layout->addItem(batteryIndicator);
    layout->addItem(phoneSignalStrengthIndicator);
    layout->addItem(phoneNetworkTypeIndicator);
    layout->addItem(phoneNetworkIndicator);
    layout->addStretch();
    layout->addItem(notifierIndicator);
    layout->addItem(transferStatusIndicator);
    layout->addItem(internetConnectionIndicator);
    layout->addItem(bluetoothIndicator);
    layout->addItem(gpsIndicator);
    layout->addItem(presenceIndicator);
    layout->addItem(profileIndicator);
    layout->addItem(callIndicator);
    layout->addItem(alarmIndicator);
    controller->setLayout(layout);
}

LockScreenStatusAreaView::~LockScreenStatusAreaView (  )  [virtual]

Destructor.

Definition at line 73 of file lockscreenstatusareaview.cpp.

{
}


Member Function Documentation

void LockScreenStatusAreaView::setGeometry ( const QRectF &  rect  )  [virtual]

REIMPLEMENTATION

Definition at line 77 of file lockscreenstatusareaview.cpp.

{
    MWidgetView::setGeometry(rect);

    if (!orientationChangeSignalConnected && controller->sceneManager() != NULL) {
        // Update the status bar geometry property when the orientation change animation finishes.
        // This connection can not be made in the constructor because the scene manager does not exist at that point. In setGeometry() the manager definitely exists.
        connect(controller->sceneManager(), SIGNAL(orientationChangeFinished(M::Orientation)), this, SLOT(updateStatusBarGeometryProperty()));
        orientationChangeSignalConnected = true;

        // Do the initial update of the status bar geometry property
        updateStatusBarGeometryProperty();
    }
}


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:19:35
Doxygen 1.7.1
MeeGo Touch