ClientFileUser.h #4

  • //
  • guest/
  • sam_stafford/
  • p4hl/
  • src/
  • dlls/
  • ClientFileUser.h
  • View
  • Commits
  • Open Download .zip Download (1 KB)
// ClientFileUser.h: interface for the ClientFileUser class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLIENTFILEUSER_H__EA35F47C_FFE6_4310_B62F_112BC8829AAB__INCLUDED_)
#define AFX_CLIENTFILEUSER_H__EA35F47C_FFE6_4310_B62F_112BC8829AAB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/* This ClientUser subclass handles "p4 files" and "p4 filelog" commands.  See ClientDepotUser for
 * more detailed comments on the way in which these ClientUser subclasses are used. */

class ClientFileUser : public ClientUser
{
public:
	/*OutputInfo() handles "p4 files" output by default.*/
	void OutputInfo(char, const_char*);
	/*OutputLog() handles "p4 filelog" output - it is called if logflag is set.*/
	void OutputLog(char, const_char*);
	ClientFileUser();
	virtual ~ClientFileUser();

	bool logflag; //Set this to handle "p4 filelog" output.
	short results;
	ListList files; //List of file paths in StrBuf form.
	ListList ftypes; //List of file types of the files in "files".
	StrBuf filelog; //StrBuf containing filelog output.

	int maxresults;
};

#endif // !defined(AFX_CLIENTFILEUSER_H__EA35F47C_FFE6_4310_B62F_112BC8829AAB__INCLUDED_)
# Change User Description Committed
#4 1689 Sam Stafford Integrate 02.1 API and code cleanup to P4HL.
 Lots of work.  Phew.
#3 1024 Sam Stafford Reworked entity creation in most cases - it's done one at a time now rather
than all at once.  This allows us to have more entities than the previous limit
of 130, and also looks a little nicer.

Folders and files now pop into existence instantly instead of sliding - makes
navigation easier.  Depots still slide because there typically aren't as many
of them (okay, I might eventually make them pop too, but I'm tired now).
Revisions slide because it looks really cool - like a waterfall pouring out of
the file.

The upper limit to entities is now due to the "visible entity packet" thing,
which I'm certain I have no control over - it's as high as it can possibly be
right now.
#2 1003 Sam Stafford Different file types now displayed differently.
 Also flipped
around the file model so that its text doesn't look backwards
any more.
#1 937 Sam Stafford Renaming my guest directory to the more conventional
sam_stafford.
//guest/samwise/p4hl/src/dlls/ClientFileUser.h
#1 936 Sam Stafford Adding P4HL to the public depot.
 See relnotes.txt for
installation instructions; all relevant files are under
p4hl/dist.

Source code is under p4hl/src in the form of a VC++ project.