2 * Copyright 2001-2007, Ingo Weinhold, bonefish@users.sf.net.
3 * Distributed under the terms of the MIT License.
6 //! An extended app_info.
8 #include "RosterAppInfo.h"
18 RosterAppInfo::RosterAppInfo()
20 state(APP_STATE_UNREGISTERED
),
29 RosterAppInfo::Init(thread_id thread
, team_id team
, port_id port
, uint32 flags
,
30 const entry_ref
*ref
, const char *signature
)
32 this->thread
= thread
;
38 strlcpy(this->signature
, signature
, B_MIME_TYPE_LENGTH
);
40 this->signature
[0] = '\0';
46 RosterAppInfo::Clone() const
48 RosterAppInfo
*clone
= new(nothrow
) RosterAppInfo
;
52 clone
->Init(thread
, team
, port
, flags
, &ref
, signature
);
53 clone
->registration_time
= registration_time
;
60 RosterAppInfo::IsRunning() const
63 return get_team_info(team
, &teamInfo
) == B_OK
;