#ifndef ACCOUNTS_H
#define ACCOUNTS_H

#include <apps.h> 	// Первым! Приложение!
#include <loader.h>
#include <u.h>
#include <mem.h>
#include <utilities.h>
#include <func.h>
#include <list_ctrl.h>

typedef struct	// Все строки в win-1251
{
	char        login[32];		// Логин
	char        server[32];		// Сервер
	int			port;			// Порт
	char		resource[32];	// Ресурс
	UINT8		priority;		// Приоритет
	char        password[32]; 	// Пароль
	char		protocol_so[8];	// Имя библиотеки протокола	(xmpp.so) на будещее, вдруг сделаю многопротокольность
	
} ACCOUNT_T;

extern LIST		accounts;		// Список учетных записей


int	AccountInit( void );
int	AccountUninit( void );

int	AccountGetCount( void );
ACCOUNT_T *AccountGet( int index );

int AccountAddNew( void );
int AccountDelete( int index );

#endif
