utilityapps/launcher/inc/applicationview.h
changeset 55 2d9cac8919d3
parent 17 4f2773374eff
equal deleted inserted replaced
53:819e59dfc032 55:2d9cac8919d3
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef APPLICATIONVIEW_H
       
    19 #define APPLICATIONVIEW_H
       
    20 
       
    21 #include <hbview.h>
       
    22 
       
    23 class HbAction;
       
    24 class HbDocumentLoader;
       
    25 class HbListWidget;
       
    26 class CommonActions;
       
    27 class EngineWrapper;
       
    28 
       
    29 class ApplicationView : public HbView
       
    30 {
       
    31     Q_OBJECT
       
    32     
       
    33 public:
       
    34     
       
    35     /**
       
    36      * Constructor
       
    37      */
       
    38     ApplicationView();
       
    39     
       
    40     /**
       
    41      * Destructor
       
    42      */
       
    43     ~ApplicationView();
       
    44 
       
    45     /**
       
    46      * Created Application View
       
    47      */
       
    48     static ApplicationView* create(HbDocumentLoader &loader,
       
    49                         CommonActions *commonActions, 
       
    50                         EngineWrapper *engine);
       
    51     
       
    52     /**
       
    53      * Setter for engine
       
    54      */
       
    55     void setEngine(EngineWrapper *engine);
       
    56     
       
    57 private slots:
       
    58 
       
    59     
       
    60     /**
       
    61      * Refreshed application list
       
    62      */
       
    63     void refreshAppList();
       
    64     
       
    65     /**
       
    66      * Launches selected applications
       
    67      */
       
    68     void launchSelectedApplications();
       
    69     
       
    70     /**
       
    71      * Launches and closes selected applications
       
    72      */
       
    73     void launchAndCloseSelectedApplications();
       
    74     
       
    75     /**
       
    76      * Selects all list items
       
    77      */
       
    78     void selectAllItems();
       
    79     
       
    80     /**
       
    81      * unselects all items
       
    82      */
       
    83     void unselectAllItems();
       
    84     
       
    85     /**
       
    86      * Changes launch options so that hidden applications are skipped
       
    87      */
       
    88     void launchOptionsSkipHidden();
       
    89     
       
    90     /**
       
    91      * Changes launch options so that hidden applications are not skipped
       
    92      */
       
    93     void launchOptionsDontSkipHidden();
       
    94     
       
    95     /**
       
    96      * Opens output view
       
    97      */
       
    98     void openOutputView();
       
    99 
       
   100 
       
   101 private:
       
   102     
       
   103     /**
       
   104      * Initializes view
       
   105      */
       
   106     void init(HbDocumentLoader &loader, CommonActions *commonActions);
       
   107     
       
   108     /**
       
   109      * connects signals and slots
       
   110      */
       
   111     void connectSignalsAndSlots();
       
   112     
       
   113     /**
       
   114      * Loads all UI items from xml file
       
   115      */
       
   116     void loadItemsFromXml(HbDocumentLoader &loader);
       
   117   
       
   118 private slots:
       
   119 
       
   120     
       
   121 private:
       
   122     EngineWrapper *mEngine;
       
   123     
       
   124     //UI components:
       
   125     HbListWidget *mApplicationList;
       
   126     
       
   127     //Actions:
       
   128     HbAction *mActionRefresh;
       
   129     HbAction *mActionLaunchApps;
       
   130     HbAction *mActionLaunchAndCloseApps;
       
   131     HbAction *mActionSkipHidden;
       
   132     HbAction *mActionDontSkipHidden;
       
   133     HbAction *mActionSelectAll;
       
   134     HbAction *mActionUnselectAll;
       
   135     HbAction *mActionOpenOutputView;
       
   136 
       
   137 
       
   138 };
       
   139 
       
   140 #endif // APPLICATIONVIEW_H