1/*
2 * Copyright 2001-2007, Ingo Weinhold, bonefish@users.sf.net.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef ROSTER_APP_INFO_H
6#define ROSTER_APP_INFO_H
7
8#include <Roster.h>
9
10enum application_state {
11	APP_STATE_UNREGISTERED,
12	APP_STATE_PRE_REGISTERED,
13	APP_STATE_REGISTERED,
14};
15
16
17struct RosterAppInfo : app_info {
18	application_state	state;
19	uint32				token;
20		// token is meaningful only if state is APP_STATE_PRE_REGISTERED and
21		// team is -1.
22	bigtime_t			registration_time;	// time of first addition
23
24	RosterAppInfo();
25	void Init(thread_id thread, team_id team, port_id port, uint32 flags,
26		const entry_ref *ref, const char *signature);
27
28	RosterAppInfo *Clone() const;
29	bool IsRunning() const;
30};
31
32#endif	// ROSTER_APP_INFO_H
33