dependencies/SchemeHandler.h
branchv5backport
changeset 31 a3e98f9c292b
equal deleted inserted replaced
30:f9f9f96b1873 31:a3e98f9c292b
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *      Declaration of class CSchemeHandler.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef SCHEME_HANDLER_H
       
    22 #define SCHEME_HANDLER_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <AiwGenericParam.h>
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 
       
    31 class MAknServerAppExitObserver;
       
    32 
       
    33 // CONSTS
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 * Scheme Handler IF definition class
       
    39 */
       
    40 class CSchemeHandler : public CBase
       
    41     {
       
    42 
       
    43     public:     // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Two phased constructor. Leaves on failure.
       
    47         * @param aUrl Url
       
    48         * @return The created object.
       
    49         */      
       
    50         inline static CSchemeHandler* NewL( const TDesC& aUrl );
       
    51         
       
    52        /**
       
    53         * Destructor.
       
    54         */      
       
    55         inline virtual ~CSchemeHandler();
       
    56 
       
    57     public:     // New functions
       
    58 
       
    59 		/**
       
    60 		* Url Handler with embedding
       
    61 		* @param -
       
    62 		*/
       
    63 		virtual void HandleUrlEmbeddedL() = 0;
       
    64 
       
    65 		/**
       
    66 		* Url Handler without embedding
       
    67 		* @param -
       
    68 		*/
       
    69 		virtual void HandleUrlStandaloneL() = 0;
       
    70 
       
    71 		/**
       
    72 		* Observer
       
    73 		* @param - aSchemeDoc
       
    74 		*/
       
    75         virtual void Observer( MAknServerAppExitObserver* aSchemeDoc ) = 0;		
       
    76 
       
    77 		/**
       
    78 		* Set Generic Parameters
       
    79 		* @param - aParamList
       
    80 		*/
       
    81         inline void SetParameterList(CAiwGenericParamList* aParamList); // Takes ownership
       
    82 
       
    83 		//reserved functions
       
    84 		virtual inline TInt Reserved_1( TAny* aAny );
       
    85 		virtual inline TInt Reserved_2( TAny* aAny );
       
    86 
       
    87 	private: // Data
       
    88 
       
    89 		/// Required attribute for the framework
       
    90 		/// (An identifier used during destruction)
       
    91 		TUid iDtor_ID_Key;
       
    92 
       
    93     protected:
       
    94 
       
    95         CAiwGenericParamList* iParamList; ///< OWNS
       
    96 	};
       
    97 
       
    98 #include <SchemeHandler.inl>
       
    99 
       
   100 #endif /* def SCHEME_HANDLER_H */