Overhaul of ClientPrefs extension (bug 5538, r=asherkin).

This commit is contained in:
Kyle Sanderson
2013-02-28 21:51:49 +00:00
parent 6b07625192
commit 5d942265f9
9 changed files with 325 additions and 359 deletions
+10 -3
View File
@@ -38,6 +38,9 @@
#include <stdarg.h>
#include "smsdk_ext.h"
#include "sh_list.h"
char * UTIL_strncpy(char * destination, const char * source, size_t num);
#include "cookie.h"
#include "menus.h"
#include "query.h"
@@ -58,6 +61,8 @@ class TQueryOp;
*/
class ClientPrefs : public SDKExtension
{
public:
ClientPrefs();
public:
/**
* @brief This is called after the initial loading sequence has been processed.
@@ -93,6 +98,10 @@ public:
bool AddQueryToQueue(TQueryOp *query);
void ProcessQueryCache();
void AttemptReconnection();
void CatchLateLoadClients();
void ClearQueryCache(int serial);
/**
* @brief Called when the pause state is changed.
@@ -145,11 +154,11 @@ public:
public:
IDBDriver *Driver;
IDatabase *Database;
bool databaseLoading;
IPhraseCollection *phrases;
const DatabaseInfo *DBInfo;
IMutex *cookieMutex;
bool databaseLoading;
private:
SourceHook::List<TQueryOp *> cachedQueries;
@@ -177,8 +186,6 @@ public:
size_t IsAuthIdConnected(char *authID);
size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...);
extern sp_nativeinfo_t g_ClientPrefNatives[];
extern ClientPrefs g_ClientPrefs;