20 while(j < Favorites->NrEntries)
22 if(Favorites->
SvcType[j] == SvcType)
27 if(Favorites->
SvcNum[j] >= ToSvcNum) Favorites->
SvcNum[j]++;
29 else if(ToSvcNum == -1)
32 if(Favorites->
SvcNum[j] >= FromSvcNum)
34 if(Favorites->
SvcNum[j] == FromSvcNum)
36 memcpy(&Favorites->
SvcNum[j], &Favorites->
SvcNum[j + 1], (100 - j - 1) *
sizeof(word));
44 else if(FromSvcNum < ToSvcNum)
47 if((Favorites->
SvcNum[j] >= FromSvcNum) && (Favorites->
SvcNum[j] <= ToSvcNum))
49 if(Favorites->
SvcNum[j] == FromSvcNum)
50 Favorites->
SvcNum[j] = ToSvcNum;
58 if((Favorites->
SvcNum[j] <= FromSvcNum) && (Favorites->
SvcNum[j] >= ToSvcNum))
60 if(Favorites->
SvcNum[j] == FromSvcNum)
61 Favorites->
SvcNum[j] = ToSvcNum;
79 TYPE_TimerInfo TimerInfo;
83 NrTimer = TAP_Timer_GetTotalNum();
84 for(i = NrTimer - 1; i >= 0; i--)
86 TAP_Timer_GetInfo(i, &TimerInfo);
87 if(TimerInfo.svcType == SvcType)
92 if(TimerInfo.svcNum >= ToSvcNum)
95 TAP_Timer_Modify(i, &TimerInfo);
98 else if(ToSvcNum == -1)
101 if(TimerInfo.svcNum >= FromSvcNum)
103 if(TimerInfo.svcNum == FromSvcNum)
110 TAP_Timer_Modify(i, &TimerInfo);
114 else if(FromSvcNum < ToSvcNum)
117 if((TimerInfo.svcNum >= FromSvcNum) && (TimerInfo.svcNum <= ToSvcNum))
119 if(TimerInfo.svcNum == FromSvcNum)
121 TimerInfo.svcNum = ToSvcNum;
122 TAP_Timer_Modify(i, &TimerInfo);
127 TAP_Timer_Modify(i, &TimerInfo);
134 if((TimerInfo.svcNum <= FromSvcNum) && (TimerInfo.svcNum >= ToSvcNum))
136 if(TimerInfo.svcNum == FromSvcNum)
138 TimerInfo.svcNum = ToSvcNum;
139 TAP_Timer_Modify(i, &TimerInfo);
144 TAP_Timer_Modify(i, &TimerInfo);
dword FIS_vFlashBlockFavoriteGroup(void)
void FlashReindexTimers(int SvcType, int FromSvcNum, int ToSvcNum)
void FlashReindexFavorites(int SvcType, int FromSvcNum, int ToSvcNum)