ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



src/inspectorj/model/classtablemodel.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   inspectorJ - java profiler                                            *
00003  *   Copyright (C) 2007 by 
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00027 #ifndef MODEL_CLASS_TABLE_MODEL_H
00028 #define MODEL_CLASS_TABLE_MODEL_H
00029 
00030 #include <QAbstractTableModel>
00031 #include <QVector>
00032 #include "inspectorj/client/sessionprofile.h"
00033 #include "inspectorj/model/javaclass.h"
00034 
00035 namespace inspectorj {        
00036 namespace model {
00037 
00043 class ClassTableModel : public QAbstractTableModel
00044 {
00045     Q_OBJECT
00046         
00047     public:
00048         ClassTableModel(QVector<JavaClass*>&, SessionProfile** = 0);
00049     
00050         ~ClassTableModel();
00051         int rowCount(const QModelIndex &parent) const;
00052         int columnCount(const QModelIndex &parent) const;
00053         QVariant data(const QModelIndex &index, int role) const;
00054         QVariant headerData(int section, Qt::Orientation orientation,
00055                             int role) const;  
00056         int getTotalClassesLoaded();
00057         int getFilteredClassesLoaded();
00058         const JavaClass* getClassAtIndex(const QModelIndex&);
00059     public slots:
00060         void initModel(JDWPPacket&);
00061     
00062     private:
00064         int totalClassesLoaded;
00065         
00067         int filteredClassesLoaded;
00068         
00070         SessionProfile **profile;
00071         
00073         QVector<JavaClass*> &classes;
00074     
00076         QList<QRegExp> regexFilterList;
00077         
00078 };
00079 
00080 } // end namespace model
00081 } // end namespace inspectorj
00082 
00083 #endif  // MODEL_CLASS_TABLE_MODEL_H

Generated on Sun Aug 19 17:07:53 2007 for inspectorJ by  doxygen 1.5.1