~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to kde/plasma/plasmoid/MainWidget.h

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-02-18 21:47:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120218214709-6362d71gqdsdkrj5
Tags: 1.0.2-1
* New upstream release
  - remove logging patch (applied upstream)
  - update s390 patch since it was partially applied upstream
* Include the Evolution plugin as a separate binary package

* Fix compilation issues on SH4 (closes: #658987)
* Merge Ubuntu's binutils-gold linking fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MAIN_WIDGET_H
 
2
#define MAIN_WIDGET_H
 
3
 
 
4
#include <Plasma/Frame>
 
5
#include <Plasma/Svg>
 
6
#include <QGraphicsLinearLayout>
 
7
#include <Plasma/Frame>
 
8
#include <plasma/theme.h>
 
9
#include <plasma/widgets/tabbar.h>
 
10
//#include <plasma/animations/animation.h>
 
11
#include <Plasma/ScrollWidget>
 
12
#include <Plasma/DataEngine>
 
13
#include <Plasma/ExtenderItem>
 
14
#include <KIcon>
 
15
#include <QHash>
 
16
 
 
17
#include "CallItem.h"
 
18
#include "ConferenceItem.h"
 
19
#include "DialPage.h"
 
20
 
 
21
#define CALL 0
 
22
#define HISTORY 1
 
23
#define CONTACT 2
 
24
 
 
25
class MainWidget : public Plasma::Frame
 
26
{
 
27
   Q_OBJECT
 
28
   public:
 
29
      MainWidget();
 
30
      void dataUpdated(const QString& source, const Plasma::DataEngine::Data &data);
 
31
 
 
32
   private:
 
33
      KIcon m_icon;
 
34
      QGraphicsLinearLayout* m_mainLayout;
 
35
      QGraphicsLinearLayout* mainLayout();
 
36
      Plasma::Frame* frmCalls;
 
37
      Plasma::Frame* frmContact;
 
38
      Plasma::Frame* frmHistory;
 
39
      QGraphicsLinearLayout* callLayout;
 
40
      QGraphicsLinearLayout* historyLayout;
 
41
      QHash<QString, CallItem*> callWidgetList;
 
42
      QHash<QString, ViewItem*> topLevelItems;
 
43
      QHash<QString, CallItem*> historyWidgetList;
 
44
      Plasma::ScrollWidget* callScrollArea;
 
45
      Plasma::ScrollWidget* historyScrollArea;
 
46
      Plasma::ScrollWidget* contactScrollArea;
 
47
      Plasma::ScrollWidget* newScrollArea;
 
48
      DialPage* dialPage;
 
49
      QString currentAccountId;
 
50
      Plasma::TabBar* mainTabs;
 
51
      QPointF initPos;
 
52
      int currentMode;
 
53
   private slots:
 
54
      void call(QString number);
 
55
 
 
56
   signals:
 
57
      void requierAttention();
 
58
};
 
59
#endif