This commit is contained in:
56
c_adlib/ad_ff/native/SignonManager.h
Normal file
56
c_adlib/ad_ff/native/SignonManager.h
Normal file
@@ -0,0 +1,56 @@
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user