summaryrefslogtreecommitdiffstats
path: root/tdecachegrind/tdecachegrind/dumpmanager.h
blob: 4925819dde02ceda6a7d2a1333efd6d0a9bb3438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
 * 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

#include <tqstring.h>
#include <tqptrlist.h>

class Dump;
class TraceData;

typedef TQPtrList<Dump> DumpList;


/**
 * A loadable profile Dump
 */
class Dump
{
public:
  Dump(TQString);

  TQString filename() { return _filename; }

private:
  TQString _filename;
};


/*
 * TODO:
 * - Everything
 *
 */

class DumpManager
{
public:
  DumpManager();

  DumpManager* self();

  DumpList loadableDumps();
  TraceData* load(Dump*);

private:
  static DumpManager* _self;
};

#endif