![]() |
|
|
00001 /*************************************************************************** 00002 * inspectorJ - java profiler * 00003 * Copyright (C) 2007 by James May * 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 SESSION_PROFILE_INCLUDED 00028 #define SESSION_PROFILE_INCLUDED 00029 00030 #include <QString> 00031 #include <QStringList> 00032 #include <iostream> 00033 00034 00035 namespace inspectorj { 00036 namespace client { 00037 00038 struct ijConnection { 00039 QString host; 00040 QString port; 00041 }; 00042 00047 class SessionProfile 00048 { 00049 00050 public: 00051 SessionProfile(); 00052 ~SessionProfile(); 00053 00054 00055 void setName(QString); 00056 void setFileName(QString); 00057 void setConnection(ijConnection); 00058 void setClassFilters(QStringList); 00059 void addFilter(QString); 00060 void removeFilter(QString); 00061 void setClassPath(QStringList); 00062 void setJavaOptions(QString); 00063 void setApplicationArgs(QString); 00064 void setApplicationEntry(QString); 00065 void setJreHome(QString); 00066 void setJarFile(bool); 00067 void setTomcatApp(bool); 00068 void setExternalLaunch(bool); 00069 00070 00071 QString getName(); 00072 ijConnection getConnection(); 00073 QStringList getClassFilters(); 00074 QStringList getClassPath(); 00075 QString getJavaOptions(); 00076 QString getApplicationArgs(); 00077 QString getApplicationEntry(); 00078 QString getFileName(); 00079 QString getJreHome(); 00080 bool isJarFile(); 00081 bool isTomcatApp(); 00082 bool isExternalLaunch(); 00083 00084 private: 00086 QString name; 00087 00089 ijConnection connection; 00090 00092 QString fileName; 00093 00095 QStringList classFilters; 00096 00098 QStringList classPath; 00099 00101 QString javaOptions; 00102 00104 QString applicationArgs; 00105 00107 QString applicationEntry; 00108 00110 bool jarFile; 00111 00113 bool tomcatApp; 00114 00120 bool externalLaunch; 00121 00123 QString jreHome; 00124 }; 00125 00126 } // end namespace client 00127 } // end namespace inspectorj 00128 00129 #endif // SESSION_PROFILE_INCLUDED