You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
785 B
60 lines
785 B
15 years ago
|
/**
|
||
|
* DumpManager
|
||
|
* Part of KCachegrind
|
||
|
* 2003, Josef Weidendorfer (GPL V2)
|
||
|
*
|
||
|
* DumpManager is a Singleton.
|
||
|
* - Has List of current loaded dumps / loadable dumps
|
||
|
* - Does "communication" with current running profiles
|
||
|
* for dump selection dockable
|
||
|
*/
|
||
|
|
||
|
#ifndef DUMPMANAGER_H
|
||
|
#define DUMPMANAGER_H
|
||
|
|
||
14 years ago
|
#include <tqstring.h>
|
||
|
#include <tqptrlist.h>
|
||
15 years ago
|
|
||
|
class Dump;
|
||
|
class TraceData;
|
||
|
|
||
14 years ago
|
typedef TQPtrList<Dump> DumpList;
|
||
15 years ago
|
|
||
|
|
||
|
/**
|
||
|
* A loadable profile Dump
|
||
|
*/
|
||
|
class Dump
|
||
|
{
|
||
|
public:
|
||
14 years ago
|
Dump(TQString);
|
||
15 years ago
|
|
||
14 years ago
|
TQString filename() { return _filename; }
|
||
15 years ago
|
|
||
|
private:
|
||
14 years ago
|
TQString _filename;
|
||
15 years ago
|
};
|
||
|
|
||
|
|
||
|
/*
|
||
|
* TODO:
|
||
|
* - Everything
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
class DumpManager
|
||
|
{
|
||
|
public:
|
||
|
DumpManager();
|
||
|
|
||
|
DumpManager* self();
|
||
|
|
||
|
DumpList loadableDumps();
|
||
|
TraceData* load(Dump*);
|
||
|
|
||
|
private:
|
||
|
static DumpManager* _self;
|
||
|
};
|
||
|
|
||
|
#endif
|