First public contribution.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // CWsPassword Class definitions
18 #ifndef __PASSWORD_H__
19 #define __PASSWORD_H__
26 enum {EPasswordMidnightOffset=4}; // Hours past midnight to trigger next days password
28 static void WindowDestroyed(CWsClientWindow *aWindow);
29 static void SetPasswordWindowL(CWsClientWindow *aWindow, TPasswordMode aPasswordMode);
30 static inline CWsClientWindow *PasswordWindow();
31 static inline TBool PasswordModeActive();
32 static void SwitchOn();
33 static void PasswordEntered(CWsClient *aClient);
35 static void CancelPasswordWindow();
38 static TBool iPasswordModeActive;
39 static TPasswordMode iPasswordMode;
40 static CWsClientWindow *iPasswordWindow;
41 static TInt iPrevPasswordDay;
44 inline TBool CWsPassword::PasswordModeActive()
46 return iPasswordModeActive;
49 inline CWsClientWindow *CWsPassword::PasswordWindow()
51 return iPasswordWindow;