/* * Perforce Extension for PHP * * Copyright 2004-2008 Jon Parise <jon@php.net>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* $Header: //guest/Jon_Parise/api/php/php_perforce.h#3 $ */ #ifndef PHP_CLIENTUSER_H #define PHP_CLIENTUSER_H #include "clientapi.h" class PHPClientUser : public ClientUser { public: PHPClientUser(zval *object); virtual ~PHPClientUser(); virtual void InputData(StrBuf *strbuf, Error *e); virtual void HandleError(Error *err); virtual void Message(Error *err); virtual void OutputError(const char *errBuf); virtual void OutputInfo(char level, const char *data); virtual void OutputBinary(const char *data, int length); virtual void OutputText(const char *data, int length); virtual void OutputStat(StrDict *varList); virtual void Prompt(const StrPtr &msg, StrBuf &buf, int bufsiz, Error *e); virtual void ErrorPause(char *errBuf, Error *e); virtual void Edit(FileSys *f1, Error *e); virtual void Diff(FileSys *f1, FileSys *f2, int doPage, char *diffFlags, Error *e); virtual void Merge(FileSys *base, FileSys *leg1, FileSys *leg2, FileSys *result, Error *e); virtual void Help(const char * const *help); private: PHPClientUser(PHPClientUser&); PHPClientUser& operator=(PHPClientUser&); zval * const mpObject; }; #endif /* PHP_CLIENTUSER_H */
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 6168 | Jon_Parise | Bumping copyright years. | ||
#4 | 6079 | Jon_Parise |
We now use a formal interface to define the UI object. This requires PHP5 so all PHP4 support has been removed. A number of other small code improvements are also included. |
||
#3 | 6078 | Jon_Parise | Updating copyright years. | ||
#2 | 6055 | Jon_Parise | Updating to work with the Perforce 2007.2 API. | ||
#1 | 4324 | Jon_Parise |
Adding Win32 support. This includes the addition of a config.w32 Win32 build file, a handful of ZTS fixes, the extraction of the PHPClientUser class (and its p4api header dependency) to a separate header file, and the removal of the p4api_version.h auto-generated file (which may return should I figure out how to generate it using JScript). |