// aim.h
//
// Kit AIM client
//
// For copyright and license, see accompanying documentation

#ifndef AIM_H
#define AIM_H

#define TAIM_ONLINE 1
#define TAIM_AWAY 2
#define TAIM_OFFLINE 0

#define TOC_PERMITALL 1
#define TOC_DENYALL 2
#define TOC_PERMITSOME 3
#define TOC_DENYSOME 4

#define TOC_USER_AOL 1
#define TOC_USER_ADMIN 2
#define TOC_USER_UNCONFIRMED 3
#define TOC_USER_NORMAL 4

#define TOC_HOST "toc.oscar.aol.com"
#define TOC_PORT 9898
#define TOC_AUTH_HOST "login.oscar.aol.com"
#define TOC_AUTH_PORT "1234"

#define TOC_LANG "english"

#include "version.h"

#define KIT_VER "\"kit client\"" KIT_VER_NUM

#define TOC_VER_INT 1

#include <qstring.h>
#include "tbuddylist.h"

QString tocNormalize(QString);
QString tocRoast(const QString &);
QString tocProcess(const QString &);

// reads and writes configuration strings in TOC server format
void tocParseConfig(const QString data, TBuddyList *buddy, TBuddyList *permit, TBuddyList *deny, int *permitStatus);
QString tocWriteConfig(const TBuddyList *buddyList, const TBuddyList *permitList, const TBuddyList *denyList, int permitStatus);

#endif
