Added creation and deletion time getters to Team and Thread.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30341 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-04-22 23:21:39 +00:00
parent 1ad26e2a7f
commit f57c87ac31
1 changed files with 34 additions and 0 deletions

View File

@ -61,6 +61,9 @@ public:
inline team_id ID() const;
inline bigtime_t CreationTime() const;
inline bigtime_t DeletionTime() const;
bool AddThread(Thread* thread);
inline void SetDeletionTime(bigtime_t time);
@ -90,6 +93,9 @@ public:
inline thread_id ID() const;
inline const char* Name() const;
inline bigtime_t CreationTime() const;
inline bigtime_t DeletionTime() const;
inline void SetDeletionTime(bigtime_t time);
static inline int CompareByID(const Thread* a, const Thread* b);
@ -117,6 +123,20 @@ Model::Team::ID() const
}
bigtime_t
Model::Team::CreationTime() const
{
return fCreationTime;
}
bigtime_t
Model::Team::DeletionTime() const
{
return fDeletionTime;
}
void
Model::Team::SetDeletionTime(bigtime_t time)
{
@ -152,6 +172,20 @@ Model::Thread::Name() const
}
bigtime_t
Model::Thread::CreationTime() const
{
return fCreationTime;
}
bigtime_t
Model::Thread::DeletionTime() const
{
return fDeletionTime;
}
void
Model::Thread::SetDeletionTime(bigtime_t time)
{