![]() |
Home · All Namespaces · All Classes |
#include <lockscreenstatusareaview.h>


Public Member Functions | |
| LockScreenStatusAreaView (StatusArea *controller) | |
| virtual | ~LockScreenStatusAreaView () |
| virtual void | setGeometry (const QRectF &rect) |
| REIMPLEMENTATION | |
Lock screen status area view draws the status area for the lock screen.
Definition at line 35 of file lockscreenstatusareaview.h.
| LockScreenStatusAreaView::LockScreenStatusAreaView | ( | StatusArea * | controller | ) |
Constructs a view for a status area in the lock screen.
| 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(¬ifierNotificationSink, 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] |
| 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();
}
}
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |