Free Time Info : Эльфы : Форум |
Страница 2 из 2: « 1 [2] |
awg: |
20.10.08, 08:01 |
myrzeug, автору на будущее. Запомни и следующий раз не путай юзеров. На DB 2010 эта константа называется PHONE_IN_STBY_EVENT 0x???? На DB 2020 эта константа называется STANDBY_IDLE_EVENT 0x084C (for W610 R6...) |
Man1980: |
20.10.08, 08:22 |
На К790 через DCE.elf попробовал добавить 0х84С и эльф заработал... Но, одного не понял, когда счет пополню, мне в конфиге его самому дописывать придется или он сам обновится? |
Bushmen: |
21.10.08, 09:43 |
А как быть если первая минута по одной цене а остальные по другой? Да ещё и в инет с этой симки выходишь? |
eddmund: |
19.11.08, 15:53 |
myrzeug пишет: you need this constant: PHONE_IN_STBY_EVENT, otherwise you don't see anything, It is present in all db2010, but I noticed that very few db2020 have this constant, Well, I've found this value for W610, K790, W880: #define PHONE_IN_STBY_EVENT 0x84C I think it's the same for the rest... myrzeug, I suggest you to use code like Код: event_in_standby_mode = STANDBY_IDLE_EVENT; if (event_in_standby_mode >= 0xFFFFFFFF) { event_in_standby_mode = PHONE_IN_STBY_EVENT; } if (! checkDynConstEvent(event_in_standby_mode, (wchar_t*)L"PHONE_IN_STBY_EVENT")) { FreeBook(myBook); return 1; } See my post in the MoonPhase thread for an explantation. |
myrzeug: |
19.11.08, 16:50 |
eddmund Nice, Your method is interesting But, in fact, at present, all db2010 using this event:PHONE_IN_STBY_EVENT and the DB2020 this:STANDBY_IDLE_EVENT Anyway, I already had resolved the problem in my elf, now works without this event No event is needed to determine when it is in the standby Код: if (SESSION_GetTopBook(root_list_get_session(root_list_get_session_count() - 1))== Find_StandbyBook()) { ... } I just forget to publish the latest version :P Now is present in the first post [ Edited by myrzeug в 20.11.08 05:25 ] |
IronMaster: |
19.11.08, 17:14 |
myrzeug, maybe it's better to check both events? |
myrzeug: |
19.11.08, 17:33 |
IronMaster Now, it's no longer need any event (works fine only with ON_CALLMANAGER_EVENT_TAG) [ Edited by myrzeug в 19.11.08 17:34 ] |
eddmund: |
19.11.08, 17:35 |
myrzeug пишет: But, in fact, at present, all db2010 using this event:PHONE_IN_STBY_EVENT and the DB2020 this:STANDBY_IDLE_EVENT Maybe it is easier to use: GetChipID ()... No, please don't believe the mystery that the constant for the Standby Mode event has anything to do with the platform. There is no need to make use of the additional function to get the platform ID. Nonsense. The values of the STANDBY_IDLE_EVENT and PHONE_IN_STBY_EVENT constants are absolutely identical. The problem is only that the DYN_CONST.bin file for some models may only have one of them defined. Others have both defined. For example, look into W580_R8BE001.h or W880_R8BA024.h of svn://svn.boba.su/SE/dynconst/target/ Код: #define STANDBY_IDLE_EVENT 0x84C #define PHONE_IN_STBY_EVENT 0x84C Your new method does not work for me. Even if it would work, I see no advantage because it costs using additional 4 functions. [ Edited by eddmund в 19.11.08 17:23 ] |
myrzeug: |
20.11.08, 05:22 |
The difference is that, in my elf, the information is displayed when you press a button, and I could verify if we are in estandby directly Otherwise it would be necessary to use a function ModifyUIHook and an addicional variable to identify/fix some problems as when you unlocks the keypad (In the previous version, when you unlock the keypad and you pres the buton, nothing happens) In my case it is more efficient in this way |
Страница 2 из 2: « 1 [2] |
URL этой темы: https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=3459&start=10 © 2005-2018 supertrubka.org |