NS/releases/valve/source/common/itrackeruser.h
puzl f44f16d59a made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@168 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-06-08 18:52:38 +00:00

46 lines
1.4 KiB
C++

//========= Copyright © 1996-2001, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef ITRACKERUSER_H
#define ITRACKERUSER_H
#ifdef _WIN32
#pragma once
#endif
#include "interface.h"
//-----------------------------------------------------------------------------
// Purpose: Interface to accessing information about tracker users
//-----------------------------------------------------------------------------
class ITrackerUser : public IBaseInterface
{
public:
// returns true if the interface is ready for use
virtual bool IsValid() = 0;
// returns the tracker ID of the current user
virtual int GetTrackerID() = 0;
// returns information about a user
// information may not be known about some users, "" will be returned
virtual const char *GetUserName(int trackerID) = 0;
virtual const char *GetFirstName(int trackerID) = 0;
virtual const char *GetLastName(int trackerID) = 0;
virtual const char *GetEmail(int trackerID) = 0;
// returns true if friendID is a friend of the current user
// ie. the current is authorized to see when the friend is online
virtual bool IsFriend(int friendID) = 0;
// requests authorization from a user
virtual void RequestAuthorizationFromUser(int potentialFriendID) = 0;
};
#define TRACKERUSER_INTERFACE_VERSION "TrackerUser001"
#endif // ITRACKERUSER_H