diff -r 000000000000 -r 164170e6151a pkiutilities/CertmanUi/INC/CertmanuiviewMain.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkiutilities/CertmanUi/INC/CertmanuiviewMain.h Tue Jan 26 15:20:08 2010 +0200 @@ -0,0 +1,149 @@ +/* +* Copyright (c) 2003-2007 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 the CCertManUIViewMain class +* +*/ + + +#ifndef CERTMANUIVIEWMAIN_H +#define CERTMANUIVIEWMAIN_H + +// INCLUDES +#include +#include +#include "Certmanuiviewid.h" + +// FORWARD DECLERATIONS +class CCrCertificate; +class CCertificate; +class CX509Certificate; +class CCertManUIContainerMain; + +// CLASS DECLARATION + +/** +* CCertManUIViewMain view class. +* +* @lib certmanui.dll +*/ +NONSHARABLE_CLASS( CCertManUIViewMain ): public CAknView + { + public: // functions + + /** + * Destructor + */ + ~CCertManUIViewMain(); + + /** + * NewL + */ + static class CCertManUIViewMain* NewL( const TRect& aRect, CCertManUIKeeper& aKeeper ); + + /** + * NewLC + */ + static class CCertManUIViewMain* NewLC( const TRect& aRect, CCertManUIKeeper& aKeeper ); + + /** + * Returns Authority view id + */ + TUid Id() const; + + /** + * Handles ClientRectChange + */ + void HandleClientRectChange(); + + /** + * Returns iContainerAuthority to be used in CertManUIContainerAuthority + */ + CCoeControl* Container(); + + /** + * Handles Softkey and Options list commands + */ + void HandleCommandL( TInt aCommand ); + + /** + * Updates the view when opening it + */ + void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + public: // data + + /** + * To get hold of CertManUIKeeper + */ + CCertManUIKeeper& iKeeper; + + /** + * To get access to certificate list in authority view + */ + CCertManUIContainerMain* iContainerMain; + + /** + * To store the position of the focus in the Authority view + */ + TInt iCurrentPosition; + + /** + * Stores top item in the listbox + */ + TInt iTopItem; + + private: // functions + + /** + * Constructor. + */ + CCertManUIViewMain( CCertManUIKeeper& aKeeper ); + + /** + * EPOC default constructor. + */ + void ConstructL(); + + + /** + * Saves focus position when closing view + */ + void DoDeactivate(); + + /** + * Appends a field that has string from resources and string from CertManAPI + * to the details view message body + */ + void DetailsFieldDynamicL( HBufC& aMessage, TPtrC aValue, + TInt aResourceOne, TInt aResourceTwo ); + + /** + * Updates Options list with correct items depending on + * whether the listbox is empty or if it has any marked items + */ + void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); + + + private: // Data + + /** + * To get the certificate location + */ + CCertManUIContainerMain* iContainerPersonal; + }; + +#endif // CERTMANUIVIEWMAIN_H + +// End of File