idlehomescreen/xmluicontroller/inc/globalqueryhandler.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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 "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:  Global query active object
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLOBALQUERYHANDLER_H
       
    19 #define GLOBALQUERYHANDLER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 namespace AiXmlUiController
       
    25 {
       
    26 class CXmlUiController;
       
    27 
       
    28 /**
       
    29  * Active object class to handle global query presses.
       
    30  */
       
    31 class CGlobalQueryHandler : public CActive
       
    32     {
       
    33     
       
    34 public:
       
    35     /**
       
    36      * @param Reference to CXmlUiController which SetPluginsOnline function is called when user accepts query
       
    37      */
       
    38     static CGlobalQueryHandler* NewL(CXmlUiController& aUiController);
       
    39     
       
    40     /**
       
    41      * 
       
    42      */
       
    43     ~CGlobalQueryHandler();
       
    44     
       
    45     /**
       
    46      * Value of the SetPluginsOnline when user accepts query.
       
    47      * Activates this active object
       
    48      * @param aOnline value of the function call, ETrue/EFalse.  
       
    49      */
       
    50     void SetOnlineParamAndActivate(TBool aOnline);
       
    51     
       
    52 private:
       
    53     /**
       
    54      * @param Reference to CXmlUiController which SetPluginsOnline function is called when user accepts query
       
    55      */
       
    56     CGlobalQueryHandler(CXmlUiController& aUiController);
       
    57     
       
    58     /**
       
    59      *  
       
    60      */
       
    61     void ConstructL();
       
    62     
       
    63 private: // from CActive
       
    64     /**
       
    65      * From CActive
       
    66      */
       
    67     void RunL();
       
    68     
       
    69     /**
       
    70      * From CActive
       
    71      */
       
    72     void DoCancel();
       
    73     
       
    74 private: // data
       
    75     /**
       
    76      * Controller, which is used when query is accepted
       
    77      */
       
    78     CXmlUiController& iUiController;
       
    79     
       
    80     /**
       
    81      * Value of the CXmlUiController::SetPluginsOnline function call when user accepts query 
       
    82      */
       
    83     TBool iSetOnline;
       
    84     };
       
    85 
       
    86 
       
    87 }// namespace AiXmlUiController
       
    88 #endif //CONTENTPUBLISHER_H
       
    89 
       
    90 
       
    91 
       
    92 
       
    93