Exemplo n.º 1
0
        public CActivePage()
            : base(ECallPages.P_ACTIVE, "Connected...")
        {
            _duration       = new CText("00:00");
            _duration.PosY  = 2;
            _duration.Align = EAlignment.justify_right;

            CTimeoutDecorator decor = new CTimeoutDecorator(_duration, 1000, true);

            decor.OnTimeout += new VoidDelegate(decor_OnTimeout);

            add(decor);

            _hold          = new CLink("Hold");
            _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
            _hold.PosY     = 7;
            add(_hold);

            _3pty       = new CLink("3Pty");
            _3pty.Align = EAlignment.justify_right;
            _3pty.PosY  = 8;
            //add(_3pty);

            _xfer = new CLink("Transfer");
            //_xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
            _xfer.PosY = 9;
            add(_xfer);

            this.Digitkey += new BoolIntDelegate(CActivePage_Digitkey);
        }
Exemplo n.º 2
0
        public CIdlePage()
            : base((int)EPages.P_IDLE)
        {
            _timedate         = new CText("");
            _timedate.PosY    = 0;
            _timedate.Caption = System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();
            CTimeoutDecorator timeDecor = new CTimeoutDecorator(_timedate, 1000, true);

            timeDecor.OnTimeout += new VoidDelegate(timeDateHandler);
            this.add(timeDecor);

            CText title = new CText("SIPek", EAlignment.justify_center);

            title.PosY = 3;
            add(title);

            // status indicator
            _statusBar      = new CStatusBar(EAlignment.justify_right);
            _statusBar.PosY = 0;
            add(_statusBar);

            _displayName       = new CText("");
            _displayName.PosY  = 4;
            _displayName.Align = EAlignment.justify_center;
            add(_displayName);

            CLink mlinkPhonebook = new CLink("Buddies", (int)EPages.P_PHONEBOOK);

            mlinkPhonebook.PosY    = 9;
            mlinkPhonebook.LinkKey = mlinkPhonebook.PosY;
            this.add(mlinkPhonebook);

            _linkRinger         = new CLink("Ring Mode", (int)EPages.P_RINGMODE);
            _linkRinger.Align   = EAlignment.justify_right;
            _linkRinger.PosY    = 8;
            _linkRinger.LinkKey = _linkRinger.PosY;
            this.add(_linkRinger);

            CLink mlinkCalls = new CLink("Calls", (int)EPages.P_CALLLOG);

            mlinkCalls.Align   = EAlignment.justify_right;
            mlinkCalls.PosY    = 10;
            mlinkCalls.LinkKey = mlinkCalls.PosY;
            this.add(mlinkCalls);

            _linkAccounts      = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
            _linkAccounts.PosY = 7;
            this.add(_linkAccounts);

            // Initialize handlers
            Digitkey += new BoolIntDelegate(digitkeyHandler);
            Charkey  += new BoolIntDelegate(CIdlePage_Charkey);
            Offhook  += new VoidDelegate(IdlePage_Offhook);
            Menu     += new VoidDelegate(IdlePage_Menu);
            Ok       += new VoidDelegate(IdlePage_Ok);
        }
Exemplo n.º 3
0
        public CActivePage()
            : base(ECallPages.P_ACTIVE, "Connected...")
        {
            _duration = new CText("00:00");
              _duration.PosY = 2;
              _duration.Align = EAlignment.justify_right;

              CTimeoutDecorator decor = new CTimeoutDecorator(_duration, 1000, true);
              decor.OnTimeout += new VoidDelegate(decor_OnTimeout);

              add(decor);

              _hold = new CLink("Hold");
              _hold.Softkey += new BoolIntDelegate(_hold_Softkey);
              _hold.PosY = 7;
              add(_hold);

              _3pty = new CLink("3Pty");
              _3pty.Align = EAlignment.justify_right;
              _3pty.PosY = 8;
              //add(_3pty);

              _xfer = new CLink("Transfer");
              //_xfer.Softkey += new BoolIntDelegate(_xfer_Softkey);
              _xfer.PosY = 9;
              add(_xfer);

              this.Digitkey += new BoolIntDelegate(CActivePage_Digitkey);
        }
Exemplo n.º 4
0
        public CIdlePage()
            : base((int)EPages.P_IDLE)
        {
            _timedate = new CText("");
              _timedate.PosY = 0;
              _timedate.Caption = System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();
              CTimeoutDecorator timeDecor = new CTimeoutDecorator(_timedate, 1000, true);
              timeDecor.OnTimeout += new VoidDelegate(timeDateHandler);
              this.add(timeDecor);

              CText title = new CText("SIPek", EAlignment.justify_center);
              title.PosY = 3;
              add(title);

              // status indicator
              _statusBar = new CStatusBar(EAlignment.justify_right);
              _statusBar.PosY = 0;
              add(_statusBar);

              _displayName = new CText("");
              _displayName.PosY = 4;
              _displayName.Align = EAlignment.justify_center;
              add(_displayName);

              CLink mlinkPhonebook = new CLink("Buddies", (int)EPages.P_PHONEBOOK);
              mlinkPhonebook.PosY = 9;
              mlinkPhonebook.LinkKey = mlinkPhonebook.PosY;
              this.add(mlinkPhonebook);

              _linkRinger = new CLink("Ring Mode", (int)EPages.P_RINGMODE);
              _linkRinger.Align = EAlignment.justify_right;
              _linkRinger.PosY = 8;
              _linkRinger.LinkKey = _linkRinger.PosY;
              this.add(_linkRinger);

              CLink mlinkCalls = new CLink("Calls", (int)EPages.P_CALLLOG);
              mlinkCalls.Align = EAlignment.justify_right;
              mlinkCalls.PosY = 10;
              mlinkCalls.LinkKey = mlinkCalls.PosY;
              this.add(mlinkCalls);

              _linkAccounts = new CLink("Accounts", (int)EPages.P_ACCOUNTS);
              _linkAccounts.PosY = 7;
              this.add(_linkAccounts);

              // Initialize handlers
              Digitkey += new BoolIntDelegate(digitkeyHandler);
              Charkey += new BoolIntDelegate(CIdlePage_Charkey);
              Offhook += new VoidDelegate(IdlePage_Offhook);
              Menu += new VoidDelegate(IdlePage_Menu);
              Ok += new VoidDelegate(IdlePage_Ok);
        }