diff -r 9b2cffad4b5e -r 6646c35e558c memspyui/ui/hb/inc/memspyecominterfaceview.h --- a/memspyui/ui/hb/inc/memspyecominterfaceview.h Wed Sep 15 12:13:45 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2009 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: - * - */ - -#ifndef MEMSPYECOMINTERFACEVIEW_H_ -#define MEMSPYECOMINTERFACEVIEW_H_ - -#include - -#include "memspylistview.h" -#include "enginewrapper.h" - - -class MemSpyEComInterfaceModel : public QAbstractListModel -{ -public: - MemSpyEComInterfaceModel(EngineWrapper &engine, int categoryId, QObject *parent = 0); - - ~MemSpyEComInterfaceModel(); - - int rowCount(const QModelIndex &parent = QModelIndex()) const; - - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; - - void refresh(); - -private: - int mCategoryId; - - EngineWrapper& mEngine; - - QList mData; -}; - -class MemSpyEComInterfaceView : public MemSpyListView -{ - - Q_OBJECT - -public: - MemSpyEComInterfaceView(EngineWrapper &engine, ViewManager &viewManager) : - MemSpyListView(engine, viewManager), - mModel(0) - {} - -public slots: - virtual void refresh(); - -protected: - void initialize(const QVariantMap& params); - -protected: - virtual bool isRefreshable() const { return true; } - -private slots: - void itemClicked(const QModelIndex& index); - -private: - MemSpyEComInterfaceModel* mModel; - - int mParentId; - - QString mParentName; -}; - -#endif /* MEMSPYECOMINTERFACEVIEW_H_ */