diff -r 000000000000 -r 5a93021fdf25 connectionutilities/ConnectionDialogs/cconndlg/inc/IAPDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectionutilities/ConnectionDialogs/cconndlg/inc/IAPDialog.h Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,129 @@ +/* +* 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 CIapDialog. +* +*/ + + +#ifndef __IAPDIALOG_H__ +#define __IAPDIALOG_H__ + + +// INCLUDES +#include +#include + +#include "ExpiryTimerCallback.h" + +// FORWARD DECLARATION +class CConnDlgIapPlugin; +class CConnectionInfoArray; +class CExpiryTimer; + +// CLASS DECLARATION +/** + * Class implementing IAP dialog + */ +NONSHARABLE_CLASS( CIapDialog ) : public CAknListQueryDialog, public MExpiryTimerCallback + { + private: + /** + * CIapDialog constructor + * @param aPlugin plugin pointer + */ + CIapDialog( CConnDlgIapPlugin* aPlugin ); + + /** + * Symbian default constructor. + */ + void ConstructL(); + + + public: + /** + * NewL function + * @param aPlugin plugin pointer + * return CIapDialog* + */ + static CIapDialog* NewL( CConnDlgIapPlugin* aPlugin ); + + /** + * ~CIapDialog destructor + */ + ~CIapDialog(); + + /** + * Exit function OF the CIapDialog + * @param aButtonId button exit id + * @return TBool exit or no + */ + virtual TBool OkToExitL( TInt aButtonId ); + + /** + * Dialog refreshing + */ + void RefreshDialogL( CConnectionInfoArray* aIAP, + TBool aIsReallyRefreshing ); + + /** + * + * @return The value of iFromOkToExit. + */ + inline TBool GetOkToExit(); + + /** + * Dialog expiration timeout callback + */ + void HandleTimedOut(); + + + private: + /** + * PreLayoutDynInitL + * @param - + */ + virtual void PreLayoutDynInitL(); + + + private: + /** + * Sets graphic icons + * @param - + */ + void SetIconsL(); + + + private: // Data + + // Pointer to the plugin, not owned + CConnDlgIapPlugin* iPlugin; + + RArray iIAPIds; + + // For base class, unused. + TInt iDummy; + + TBool iFromOkToExit; ///< closed the dialof from OkToExitL or not + + // Pointer for dialog expiration timer + CExpiryTimer* iExpiryTimer; + }; + + +#include "IapDialog.inl" + +#endif + + +// End of File