~ubuntu-branches/ubuntu/precise/sflphone/precise

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DIAL_PAGE
#define DIAL_PAGE

#include <Plasma/Frame>
#include <Plasma/PushButton>

class DialButton : public Plasma::PushButton
{
   Q_OBJECT

   public:
      DialButton(QGraphicsWidget* parent) : Plasma::PushButton(parent) {
         connect(this, SIGNAL(clicked()), this, SLOT(clicked2()));
      }
      void setLetter(QString value) {
         letter = value;
      }
   private slots:
      void clicked2() {
         emit typed(letter);
      }
   signals:
      void typed(QString);
   private:
      QString letter;
};

class DialPage : public Plasma::Frame
{
   Q_OBJECT
   public:
      DialPage();

   private slots:
      void charTyped(QString value);
      void call();
      void cancel();

   private:
      Plasma::Frame* currentNumber;
      QString currentNumber2;

   signals:
      void typed(QString);
      void call(QString);

};

#endif