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

1.1.6 by Francois Marier
Import upstream version 1.0.2
1
#ifndef DIAL_PAGE
2
#define DIAL_PAGE
3
4
#include <Plasma/Frame>
5
#include <Plasma/PushButton>
6
7
class DialButton : public Plasma::PushButton
8
{
9
   Q_OBJECT
10
11
   public:
12
      DialButton(QGraphicsWidget* parent) : Plasma::PushButton(parent) {
13
         connect(this, SIGNAL(clicked()), this, SLOT(clicked2()));
14
      }
15
      void setLetter(QString value) {
16
         letter = value;
17
      }
18
   private slots:
19
      void clicked2() {
20
         emit typed(letter);
21
      }
22
   signals:
23
      void typed(QString);
24
   private:
25
      QString letter;
26
};
27
28
class DialPage : public Plasma::Frame
29
{
30
   Q_OBJECT
31
   public:
32
      DialPage();
33
34
   private slots:
35
      void charTyped(QString value);
36
      void call();
37
      void cancel();
38
39
   private:
40
      Plasma::Frame* currentNumber;
41
      QString currentNumber2;
42
43
   signals:
44
      void typed(QString);
45
      void call(QString);
46
47
};
48
49
#endif