[p4] more p4.net events?
stevewilliams at kromestudios.com
Tue Jul 14 21:20:02 PDT 2009
You can do what I did and use the P4Connection class in a separate thread. Then you use delegates to get the information back to the GUI.
From: perforce-user-bounces at perforce.com [mailto:perforce-user-bounces at perforce.com] On Behalf Of Erik Purins
Sent: Saturday, 11 July 2009 3:21 AM
To: perforce-user at perforce.com
Subject: [p4] more p4.net events?
Hi p4 users,
I really like Shawn's p4.net, and am using it at work. Thanks for that,
it's really handy and intuitive to use.
I'm trying to update a utility at work that uses p4dn (as opposed to
P4API). The utility presents the incoming perforce info into a gui text
window by overriding some of the clientapi output functions.
It looks like the original engineer skipped using P4API.P4Connection
because he couldn't use it to listen to events that keep the ui feeling
For example, currently, in order to do the same thing with p4.net, it
looks like I would want to replace/adapt the P4Connection class (which
has some internal/private members) and/or the P4RecordsetCallback class,
and throw events in the specific callback methods I need to handle.
(event handers for messages, warnings, as records are created).
I'm pretty new to c#/.net: is there an easier way to do this that I'm
perforce-user mailing list - perforce-user at perforce.com
This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
More information about the perforce-user