diff -r 000000000000 -r 5a93021fdf25 connectionutilities/ConnectionDialogs/cconndlg/inc/SelectExplicitDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectionutilities/ConnectionDialogs/cconndlg/inc/SelectExplicitDialog.h Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,133 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of class CSelectExplicitDialog. +* +*/ + + +#ifndef __SELECTEXPLICITDIALOG_H__ +#define __SELECTEXPLICITDIALOG_H__ + + +// INCLUDES +#include +#include +#include "ExpiryTimerCallback.h" + +// FORWARD DECLARATION +class CConnectionInfoArray; +class CSelectConnectionDialog; +class CExpiryTimer; + +// CLASS DECLARATION +/** + * Class implementing SelectExplicit dialog + */ +NONSHARABLE_CLASS( CSelectExplicitDialog ) : public CAknListQueryDialog, public MExpiryTimerCallback + { + private: + /** + * CSelectExplicitDialog constructor + * @param aPlugin plugin pointer + */ + CSelectExplicitDialog( CSelectConnectionDialog* aCallerDialog ); + + + /** + * Symbian default constructor. + */ + void ConstructL(); + + + public: + /** + * NewL function + * @param aPlugin plugin pointer + * return CSelectExplicitDialog* + */ + static CSelectExplicitDialog* NewL( + CSelectConnectionDialog* aCallerDialog ); + + + /** + * ~CSelectExplicitDialog destructor + */ + ~CSelectExplicitDialog(); + + /** + * Exit function OF the CSelectExplicitDialog + * @param aButtonId button exit id + * @return TBool exit or no + */ + virtual TBool OkToExitL( TInt aButtonId ); + + void PrepareAndRunLD( CConnectionInfoArray* aIAP, + CArrayPtr< CGulIcon >* aIcons, + TBool aIsReallyRefreshing ); + + /** + * Dialog refreshing + */ + void RefreshDialogL( CConnectionInfoArray* aIAP, + CArrayPtr< CGulIcon >* aIcons, + TBool aIsReallyRefreshing ); + + /** + * + * @return The value of iFromOkToExit. + */ + inline TBool GetOkToExit(); + + TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, + TEventCode aType); + + TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); + + /** + * Dialog expiration timeout callback + */ + void HandleTimedOut(); + private: + /** + * PreLayoutDynInitL + * @param - + */ + virtual void PreLayoutDynInitL(); + + + private: // Data + + // Pointer to the plugin, not owned + CSelectConnectionDialog* iCallerDialog; + + RArray iIAPIds; + + TBool iFromOkToExit; ///< closed the dialof from OkToExitL or not + + TInt iDummy; + + CArrayPtr< CGulIcon >* iIcons; + + // Pointer for dialog expiration timer + CExpiryTimer* iExpiryTimer; + + }; + + +#include "SelectExplicitDialog.inl" + +#endif + + +// End of File