Fixed amb1810 - Clientprefs no longer blocks load.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402418
This commit is contained in:
Matt Woodrow
2008-07-15 00:24:08 +00:00
parent 67e28d7475
commit e64e2534eb
11 changed files with 625 additions and 191 deletions
+21 -1
View File
@@ -47,6 +47,8 @@
#define MAX_TRANSLATE_PARAMS 32
class TQueryOp;
/**
* @brief Sample implementation of the SDK Extension.
* Note: Uncomment one of the pre-defined virtual functions in order to use it.
@@ -79,6 +81,11 @@ public:
virtual void NotifyInterfaceDrop(SMInterface *pInterface);
void DatabaseConnect();
bool AddQueryToQueue(TQueryOp *query);
void ProcessQueryCache();
/**
* @brief Called when the pause state is changed.
*/
@@ -128,7 +135,20 @@ public:
public:
IDBDriver *Driver;
IDatabase *Database;
bool databaseLoading;
IPhraseCollection *phrases;
const DatabaseInfo *DBInfo;
IPreparedQuery *InsertCookieQuery;
IPreparedQuery *SelectDataQuery;
IPreparedQuery *InsertDataQuery;
IPreparedQuery *SelectIdQuery;
IMutex *cookieMutex;
private:
SourceHook::List<TQueryOp *> cachedQueries;
IMutex *queryMutex;
};
class CookieTypeHandler : public IHandleTypeDispatch
@@ -136,7 +156,7 @@ class CookieTypeHandler : public IHandleTypeDispatch
public:
void OnHandleDestroy(HandleType_t type, void *object)
{
/* No delete needed since Cookies are persistant */
/* No delete needed since Cookies are persistent */
}
};