CASA/c_adlib/ad_gk/native/SignonManager.h
2006-02-28 10:50:24 +00:00

57 lines
1.1 KiB
C++

// SignonManager.h: interface for the SignonManager class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __FPM_SIGNON_MANAGER_H__
#define __FPM_SIGNON_MANAGER_H__
#include "FirefoxPasswordManager.h"
#include "Common.h"
#include "DataManager.h"
#include "CryptManager.h"
class SignonManager
{
DataManager dataManager;
CryptManager cryptManager;
FILE *signonFile;
public:
SignonManager();
virtual ~SignonManager();
int OpenSignonFile(char *firefoxProfileDir, char *fileName, char *accessType );
int CloseSignonFile();
int ReadLine(char *buffer, int size);
char ReadChar();
Unichar ReadCharUTF8();
int WriteCharUTF8(Unichar c);
int WriteLine(char *line);
int LoadSignonData(char *firefoxProfileDir);
int WriteSignonData(char *firefoxProfileDir);
int RemoveSignonData();
int AddUser(char *host, char *userName, char *password);
int RemoveHost(char *hostName);
int ModifyHost(struct Host *host);
int AddHost(struct Host *host);
struct Host* GetHostInfo();
void SetupFunctions(void *funList[]);
int CheckSignonPref();
};
#endif