[Herecast-commit] herecast/src/HerecastLib/APDB Location.cpp,1.9,1.10
Status: Beta
Brought to you by:
mdpaciga
|
From: Mark P. <mdp...@us...> - 2005-07-25 20:01:22
|
Update of /cvsroot/herecast/herecast/src/HerecastLib/APDB In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18282/src/HerecastLib/APDB Modified Files: Location.cpp Log Message: subscriptions are now updated shortly after first subscribing. This is done by calling Location->checkSubscriptions (and thus SubscriptionAgent->check) as part of the doScan method, which is run every 10 seconds. We should optimise Subscription->agent check to avoid parsing all URLs every 10 seconds, but this will do for now. Index: Location.cpp =================================================================== RCS file: /cvsroot/herecast/herecast/src/HerecastLib/APDB/Location.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Location.cpp 21 Jul 2005 19:56:32 -0000 1.9 --- Location.cpp 25 Jul 2005 20:01:00 -0000 1.10 *************** *** 159,165 **** pClosestAp = pAp; - - SubscriptionAgent* pSubscriptionAgent = SubscriptionAgent::instance(); - pSubscriptionAgent->check(pClosestAp); } --- 159,162 ---- *************** *** 297,300 **** --- 294,304 ---- + void Location::checkSubscriptions() + { + SubscriptionAgent* pSubscriptionAgent = SubscriptionAgent::instance(); + pSubscriptionAgent->check(pClosestAp); + } + + int Location::execAPIMsg(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { |