clean up ThreadData

Reviewed-by: hjk
This commit is contained in:
Arvid Ephraim Picciani
2010-10-15 10:56:39 +02:00
parent 63bd3c2e51
commit 728ef58b16
5 changed files with 103 additions and 63 deletions

View File

@@ -35,55 +35,13 @@
#include <QtGui/QIcon>
#include "threaddata.h"
namespace Debugger {
class DebuggerEngine;
namespace Internal {
////////////////////////////////////////////////////////////////////////
//
// ThreadData
//
////////////////////////////////////////////////////////////////////////
/*! A structure containing information about a single thread */
struct ThreadData
{
ThreadData(int threadId = 0);
enum {
IdColumn,
AddressColumn,
FunctionColumn,
FileColumn,
LineColumn,
StateColumn,
NameColumn,
CoreColumn,
ColumnCount = CoreColumn
};
// Permanent data.
int id;
QString targetId;
QString core;
// State information when stopped
void notifyRunning(); // Clear state information
int frameLevel;
quint64 address;
QString function;
QString fileName;
QString state;
int lineNumber;
QString name;
};
typedef QVector<ThreadData> Threads;
////////////////////////////////////////////////////////////////////////
//
// ThreadsHandler
@@ -102,7 +60,7 @@ public:
void setCurrentThread(int index);
int currentThreadId() const;
void setCurrentThreadId(int id);
int indexOf(int threadId) const;
int indexOf(quint64 threadId) const;
void selectThread(int index);
void setThreads(const Threads &threads);