diff -r 84d9eb65b26f -r 2981cb3aa489 messagingappbase/schemeplugin/inc/LocalAppHandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/schemeplugin/inc/LocalAppHandler.h Wed Nov 03 09:52:46 2010 +0530 @@ -0,0 +1,121 @@ +/* +* Copyright (c) 2004 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 Scheme handler interface implementation for +* "localapp:" URI scheme +* +*/ + + + +#ifndef LOCAL_APP_HANDLER_H +#define LOCAL_APP_HANDLER_H + +// INCLUDES + +#include "BaseHandler.h" +#include +#include +#include + + +// DATA TYPES + +// FORWARD DECLARATION + +// CLASS DECLARATION + +/** +* Scheme Handler IF implementation class for localapp uri scheme +* +* @since Series60_2.6 +*/ +class CLocalAppHandler : public CBaseHandler + { + + public: // Constructors and destructor + + /** + * Two phased constructor. Leaves on failure. + * @param - aUrl + * @return The created object. + */ + static CLocalAppHandler* NewL( const TDesC& aUrl ); + + /** + * Destructor. + */ + virtual ~CLocalAppHandler(); + + private: // Constructors + + /** + * Constructor. + */ + CLocalAppHandler(); + + /** + * Second phase constructor. Leaves on failure. + * @param - aUrl + */ + void ConstructL( const TDesC& aUrl ); + + private: + + /** + * Url Handler with embedding + * All applications are always started standalone + * @param - + */ + void HandleUrlEmbeddedL(); + + /** + * Url Handler without embedding + * @param - + */ + void HandleUrlStandaloneL(); + + /** + * Url Handler + * @param aLaunchEmbedded + */ + void HandleUrlL(); + + void HandleMmsL(); + + void HandleSmsL(); + + void HandleCalendarL(); + + void HandleContactsL(); + + void HandleMessagingL(); + + void HandleJamL(); + + /** + * Starts application identified in iAppUid + * + */ + void StartAppL(); + + private: // Data + CActiveSchedulerWait iWait; + TUid iAppUid; + TBool iToday; + TBool iEmbedded; + + }; + +#endif /* def LOCAL_APP_HANDLER_H */