/* * P4.Net * Copyright (c) 2006 Shawn Hladky Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using System; using System.IO; using System.Text; namespace P4API { /// <summary> /// Delegate to handle the OnPrompt event. /// </summary> /// <param name="sender">Sender</param> /// <param name="args">P4PromptEventArgs</param> /// <remarks>Handle Perforce "prompts". Prompts are from commands that ask the user to respond, such as: /// <list> /// <li>login</li> /// <li>passwd</li> /// <li>resolve (without an -a* switch)</li> /// </list> /// </remarks> /// <seealso cref="OnPrompt"/> public delegate void OnPrintStreamEventHandler(P4PrintStreamEventArgs args, out Stream outputStream); public delegate void OnPrintEndEventHandler(P4PrintStreamEventArgs args, Stream stream); public class P4PrintStreamEventArgs : EventArgs { private Encoding _textEncoding = Encoding.UTF8; private Encoding _unicodeEncoding = Encoding.ASCII; private string _depotFile; private string _action; private string _type; private DateTime _fileTime; private int _change; internal P4PrintStreamEventArgs(string depotFile, string action, string fileType, DateTime fileTime, int change) { _depotFile = depotFile; _action = action; _type = fileType; _fileTime = fileTime; _change = change; } public string DepotFile { get { return _depotFile; } } public Encoding TextEncoding { get { return _textEncoding; } set { _textEncoding = value; } } public Encoding UnicodeEncoding { get { return _unicodeEncoding; } set { _unicodeEncoding = value; } } public string Action { get { return _action; } } public string FileType { get { return _type; } } public DateTime FileTime { get { return _fileTime; } } public int Change { get { return _change; } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 7709 | Shawn Hladky | P4.Net: Cleanup, documentation, and a a start for implementing an object-based output for filelog. | ||
#5 | 7204 | Shawn Hladky | P4.Net: Added Map functionality | ||
#4 | 6102 | Shawn Hladky |
P4.Net: Documentation. Fixed SetTicketFile bug. Added form processing with SpecDef. Stubbed-out code for launching external merge tool, but is disabled since it's too difficult to use. |
||
#3 | 5878 | Shawn Hladky |
P4.Net: 1.0, support for raw spec processing. Update copyright. Fix build script. Bugs found along the way. |
||
#2 | 5874 | Shawn Hladky |
P4.Net: v1.0 WIP. Upgrade API to 2006.2. Fixes/tests for print and unicode servers. Changed ConvertDate to use client's timezone... old logic trying to use server's timezone didn't account for daylight savings time. |
||
#1 | 5842 | Shawn Hladky |
P4.Net Update test harness for unicode server. Add methods to support p4 print. |