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



src/inspectorj/toolset/classtoolset.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 TOOLSET_CLASS_TOOLSET_H
00028 #define TOOLSET_CLASS_TOOLSET_H
00029 
00030 #include <QItemSelectionModel>
00031 #include <QProcess>
00032 #include <QTextDocument>
00033 #include "inspectorj/client/connectionmanager.h"       
00034 #include "inspectorj/jdwp/jdwpcommand.h"
00035 #include "inspectorj/model/classtablemodel.h"
00036 #include "inspectorj/model/classtreemodel.h"
00037 
00038 
00039 namespace inspectorj {
00040 namespace toolset
00041 {
00042 
00043 using inspectorj::model::ClassTableModel;
00044 using inspectorj::model::ClassTreeModel;
00045 using inspectorj::model::JavaClass;
00046 
00052 class ClassToolSet : public QObject
00053 {    
00054     Q_OBJECT
00055     
00056     public:
00057         ClassToolSet(ConnectionManager&, SessionProfile** = 0);
00058     
00059         ~ClassToolSet();
00060         ClassTableModel* getClassTableModel();
00061         ClassTreeModel* getClassTreeModel();
00062         void prepareBytecodeOutput(QTextDocument*);
00063 
00064 
00065     signals:
00068         void tableModelReady();
00069         
00071         void treeModelReady();
00072         
00074         void bytecodesReady();
00075 
00076     public slots:
00077         void getAllLoadedClasses();
00078         void getClassDetails(const QModelIndex&);
00079         void disassembleBytecodes(const QModelIndex&, bool, bool, bool, bool, bool);
00080 
00081     private slots:
00082         void getBytecodeString(JDWPPacket&);
00083         
00084     private:
00085         void createActions();
00086         void setupConnections();
00087         QString javapOutput;
00088         
00090         ClassTableModel *classTableModel;
00091         
00093         ClassTreeModel *classTreeModel;
00094         
00096         JDWPAction *updateClassFieldsAction;
00097         JDWPAction *updateClassMethodsAction;
00098         JDWPAction *tableModelAction;
00099         JDWPAction *byteCodesAction;
00100         
00102         ConnectionManager &connection;
00103         
00105         SessionProfile** profile;
00106         
00108         QVector<JavaClass*> classes;   
00109              
00111         QMap<qint64, JavaClass*> classMap;
00112 
00113 };
00114 
00115 } // end namespace toolset
00116 } // end namespace inspectorj
00117 
00118 #endif // TOOLSET_CLASS_TOOLSET_H

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