Changeset 24226 for titan/titan


Ignore:
Timestamp:
10/12/13 12:26:10 (11 years ago)
Author:
obi
Message:

update channelscan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/scan.h

    r24224 r24226  
    13931393}
    13941394
    1395 void screenscan(struct transponder* transpondernode, struct skin* mscan, char* tuner, int scantype, int orbitalpos, unsigned int frequency, int inversion, unsigned int symbolrate, int polarization, int fec, int modulation, int rolloff, int pilot, int networkscan, int onlyfree, int clear, int blindscan, int ichangename, int system, int favtype, int emptybouquet, int timeout)
     1395void screenscan(struct transponder* transpondernode, struct skin* mscan, char* tuner, int scantype, int orbitalpos, unsigned int frequency, int inversion, unsigned int symbolrate, int polarization, int fec, int modulation, int rolloff, int pilot, int networkscan, int onlyfree, int clear, int blindscan, int ichangename, int system, int favtype, int emptybouquet, int unusedbouquetchannels, int timeout)
    13961396{
    13971397        int rcret = 0, tpmax = 0, i = 0, alladded = 0;
     
    16581658                        delemptymainbouquet(1);
    16591659               
    1660                 if(textbox(_("Message"), _("Do you want to delete all unused Bouquetentrys?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1)
     1660                if(unusedbouquetchannels == 1)
    16611661                        delunusedbouquetchannels(0);
    16621662                else
     
    18291829        int iinversion = -1, ipolarization = -1;
    18301830        int ifec = -1, imodulation = -1, irolloff = -1, ipilot = -1, isystem = -1;
    1831         int inetworkscan = -1, ionlyfree = -1, iclear = -1, iblindscan = -1, ichangename = -1, ifavtype = -1, iemptybouquet = -1;
     1831        int inetworkscan = -1, ionlyfree = -1, iclear = -1, iblindscan = -1, ichangename = -1, ifavtype = -1, iemptybouquet = -1, irmunusedbouquetchannels = -1;
    18321832        int i = 0, treffer = 0, tunercount = 0;
    18331833        struct skin* scan = getscreen("manualscan");
     
    18591859        struct skin* favtype = getscreennode(scan, "favtype");
    18601860        struct skin* emptybouquet = getscreennode(scan, "emptybouquet");
     1861        struct skin* unusedbouquetchannels = getscreennode(scan, "unusedbouquetchannels");
    18611862       
    18621863        struct skin* b4 = getscreennode(scan, "b4");
     
    18721873        if(status.recording > 0 || status.streaming > 0)
    18731874        {
    1874                 textbox(_("Message"), _("Scan is not allowed if record\nor stream is running !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
     1875                textbox(_("Message"), _("Scan is not allowed if record or stream is running !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0);
    18751876                return;
    18761877        }
     
    22532254        addchoicebox(emptybouquet, "1", _("yes"));
    22542255
     2256        //unusedbouquetchannels
     2257        addchoicebox(unusedbouquetchannels, "0", _("no"));
     2258        addchoicebox(unusedbouquetchannels, "1", _("yes"));
     2259
    22552260        drawscreen(scan, 2, 0);
    22562261        changescantype(scantype->ret, scan, listbox, tuner, sat, id, system, frequency, inversion, symbolrate, polarization, fec, modulation, rolloff, pilot, hp, lp, bandwidth, transmission, guardinterval, hierarchy, b4, b5, flag);
     
    22942299                if(favtype->ret != NULL) ifavtype = atoi(favtype->ret);
    22952300                if(emptybouquet->ret != NULL) iemptybouquet = atoi(emptybouquet->ret);
     2301                if(unusedbouquetchannels->ret != NULL) iunusedbouquetchannels = atoi(unusedbouquetchannels->ret);
    22962302
    22972303                if(rcret == getrcconfigint("rcexit", NULL)) break;
     
    23162322                {
    23172323                        clearscreen(scan);
    2318                         screenscan(tpnode, scan->child, tuner->ret, iscantype, isat, ifrequency, iinversion, isymbolrate, ipolarization, ifec, imodulation, irolloff, ipilot, inetworkscan, ionlyfree, iclear, iblindscan, ichangename, isystem, ifavtype, iemptybouquet, 5000000);
     2324                        screenscan(tpnode, scan->child, tuner->ret, iscantype, isat, ifrequency, iinversion, isymbolrate, ipolarization, ifec, imodulation, irolloff, ipilot, inetworkscan, ionlyfree, iclear, iblindscan, ichangename, isystem, ifavtype, iemptybouquet, iunusedbouquetchannels, 5000000);
    23192325                        drawscreen(scan, 0, 0);
    23202326                }
Note: See TracChangeset for help on using the changeset viewer.