Main Page   Compound List   File List   Compound Members   File Members  

KMtraceSuppression.hh

Go to the documentation of this file.
00001 #ifndef __KMTRACE_SUPPRESSION__H__
00002 #define __KMTRACE_SUPPRESSION__H__
00003 
00004 // Qt includes
00005 #include <qobject.h>
00006 #include <qstring.h>
00007 
00008 // kmtraceviewer includes
00009 
00010 typedef enum {
00011    MatchByString,
00012    Comment
00013 } KMtraceSuppressionMethod;
00014 
00015 class KMtraceSuppression : public QObject
00016 {
00017    Q_OBJECT
00018    
00019    public:
00020       KMtraceSuppression( QString string, KMtraceSuppressionMethod method );
00021 
00022       QString getLeakType( );
00023       KMtraceSuppressionMethod getMethod( );
00024       QString getMethodAsString( );
00025       QString getDescription( );
00026 
00027       void setView( QObject *view );
00028       QObject *getView( );
00029 
00030    protected:
00031       // method to match, only strings and comments are supported at the
00032       // moment
00033       KMtraceSuppressionMethod method;
00034 
00035       // only string matching is supported at the moment
00036       QString string;
00037 
00038       // the view to the model (only one)
00039       QObject *view;
00040 };
00041 
00042 #endif

Generated on Fri Jan 3 11:42:18 2003 for kmtraceviewer by doxygen1.3-rc1