Ejemplo n.º 1
0
        private void probeCB(Radionic.RESULT result, string reply)
        {
            string msg;

            switch (result) {
            case (Radionic.RESULT.SUCCESS):
                msg = Catalog.GetString ("Found.");
                Respond (Gtk.ResponseType.Apply);
                break;
            case (Radionic.RESULT.TIMEOUT):
                msg = Catalog.GetString ("Timeout.\n\n");
                break;
            default:
                msg = Catalog.GetString ("Bad reply.\n\n");
                break;
            }

            buttonRetry.Sensitive = true;
            logAppend (msg);

            if (result != Radionic.RESULT.SUCCESS) {
                probeIdx ++;
                probeNext ();
            }
        }
Ejemplo n.º 2
0
        public ProbeLogDlg(Radionic radionic)
        {
            this.Build ();

            logBuff = textviewLog.Buffer;
            Port = "";

            this.radionic = radionic;

            probeStart ();
        }
Ejemplo n.º 3
0
        public WelcomeSetupDlg(string baseUrl, Radionic radionic)
        {
            this.Build ();
            this.baseUrl = baseUrl;
            this.radionic = radionic;

            origPort = radionic.Port;
            if (origPort != null) {
                comboPort.Entry.Text = origPort;
            }
            comboPortSize = 0;

            baseUrlEntry.Text = baseUrl;
            findPorts ();
        }
Ejemplo n.º 4
0
        public AppConfig(Charp charp, Radionic radionic)
        {
            this.charp = charp;
            this.radionic = radionic;
            pcache = new PictureCache (charp);

            #if CHARP_WINDOWS
            conf = new CharpGtk.MSConfig (DEFAULT_BASEURL);
            #else
            conf = new CharpGtk.GConfConfig (DEFAULT_BASEURL);
            #endif
            conf.SetApp (APP_NAME);

            account_type = AccountType.UNKNOWN;
        }