equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
40 { |
40 { |
41 Q_OBJECT |
41 Q_OBJECT |
42 |
42 |
43 public: |
43 public: |
44 |
44 |
|
45 Q_ENUMS(ScreenPowerMode) |
|
46 |
|
47 enum ScreenPowerMode { |
|
48 ScreenModeOff = 0, |
|
49 ScreenModeLowPower, |
|
50 ScreenModeFullPower |
|
51 }; |
|
52 |
45 Screensaver(QObject *parent = 0); |
53 Screensaver(QObject *parent = 0); |
46 virtual ~Screensaver(); |
54 virtual ~Screensaver(); |
47 |
55 |
48 ScreensaverState currentState(); |
56 ScreensaverState currentState(); |
|
57 virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow) = 0; |
|
58 virtual void updateLayout() = 0; |
49 |
59 |
50 public slots: |
60 public slots: |
51 |
61 |
52 void initialize(); |
62 void initialize(); |
53 void foreground(); |
63 void foreground(); |
78 signals: |
88 signals: |
79 |
89 |
80 void faulted(); |
90 void faulted(); |
81 void viewChanged(QGraphicsWidget *widget); |
91 void viewChanged(QGraphicsWidget *widget); |
82 void unlockRequested(); |
92 void unlockRequested(); |
|
93 void screenPowerModeRequested(Screensaver::ScreenPowerMode mode); |
83 |
94 |
84 private: |
95 private: |
85 |
96 |
86 Q_DISABLE_COPY(Screensaver) |
97 Q_DISABLE_COPY(Screensaver) |
87 |
98 |