Authors
- Generated by builder
-
- Declared in:
- XMPPChatLog.h
A class encapsulating the log of an XMPP chat. The current
implementation logs to a series of RTF files
(one per day per user) in a directory structure that
mimics the roster.
Instance Variables
Method summary
+ (id)
chatLogWithPerson: (
XMPPPerson*)aPerson;
Returns a XMPPChatLog for the specified person.
+ (
NSString*)
logPath;
Returns the root path from which all logs will be
stored.
+ (void)
setLogBasePath: (
NSString*)aPath;
Sets the base path in which log files are created.
This method should not be called after the creation of
any XMPPChatLog objects. The behaviour in this case is
undefined.
- (id)
getLogForToday;
Returns a copy of the log for today. Used typically
for a client to re-load previous conversations from the
same day after exiting.
- (id)
initWithPerson: (
XMPPPerson*)aPerson;
Initialises the chat log for a specific person.
- (id)
logMessage: (
XMPPMessage*)aMessage;
Logs the given message.
- (BOOL)
save;
Forces the log to be flushed to disk. If not called,
the log will be flushed periodically.
Instance Variables for XMPPChatLog Class
@protected NSTimer* autoSaveTimer;
Description forthcoming.
@protected BOOL isXML;
Description forthcoming.
@protected id log;
Description forthcoming.
@protected NSString* logFileName;
Description forthcoming.
@protected XMPPPerson* remoteEntity;
Description forthcoming.
@protected NSCalendarDate* today;
Description forthcoming.