remotemgmt_plat/syncml_ds_customization_api/tsrc/SyncFwCustomizer/customlistview.h
branchRCL_3
changeset 26 19bba8228ff0
parent 25 b183ec05bd8c
child 27 5cc2995847ea
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
     1 /*
       
     2 * Copyright (c) 2009 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 CUSTOMLISTVIEW_H_
       
    19 #define CUSTOMLISTVIEW_H_
       
    20 
       
    21 #include <QStringListModel>
       
    22 #include <hbview.h>
       
    23 
       
    24 class HbListWidget;
       
    25 
       
    26 class CustomListView : public HbView
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     CustomListView( QGraphicsItem *parent=0 );  
       
    32     virtual ~CustomListView() {};
       
    33 
       
    34 public slots:
       
    35     void editItem();
       
    36     void saveKeyItems();
       
    37     void listSyncProfiles();
       
    38     void syncNow();
       
    39     void resetItem();
       
    40     void resetAll();
       
    41     void handleEditItem(HbAction* action);
       
    42     void startSync(HbAction* action);
       
    43 
       
    44 protected:
       
    45     void populateModel();
       
    46     void createMenu();
       
    47 
       
    48 protected:
       
    49     HbListWidget* mWidget;
       
    50 
       
    51 };
       
    52 
       
    53 #endif /* CUSTOMLISTVIEW_H_*/