summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/irdaapplet/irda.cpp8
-rw-r--r--core/applets/irdaapplet/irda.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/core/applets/irdaapplet/irda.cpp b/core/applets/irdaapplet/irda.cpp
index 03912aa..28a79d1 100644
--- a/core/applets/irdaapplet/irda.cpp
+++ b/core/applets/irdaapplet/irda.cpp
@@ -172,27 +172,27 @@ void IrdaApplet::mousePressEvent( QMouseEvent *) {
172 timerEvent(NULL); 172 timerEvent(NULL);
173 break; 173 break;
174 case 3: 174 case 3:
175 setIrdaDiscoveryStatus(1); 175 setIrdaDiscoveryStatus(1);
176 timerEvent(NULL); // NULL is undefined in c++ use 0 or 0l 176 timerEvent(NULL); // NULL is undefined in c++ use 0 or 0l
177 break; 177 break;
178 case 4: { // enable receive 178 case 4: { // enable receive
179 qWarning("Enable receive" ); 179 qWarning("Enable receive" );
180 QCopEnvelope e("QPE/Obex", "receive(bool)" ); 180 QCopEnvelope e("QPE/Obex", "receive(int)" );
181 e << true; 181 e << 1;
182 receiveActive = true; 182 receiveActive = true;
183 receiveStateChanged = true; 183 receiveStateChanged = true;
184 timerEvent(NULL); 184 timerEvent(NULL);
185 break; 185 break;
186 } 186 }
187 case 5: { // disable receive 187 case 5: { // disable receive
188 qWarning("Disable receive" ); 188 qWarning("Disable receive" );
189 QCopEnvelope e("QPE/Obex", "receive(bool)" ); 189 QCopEnvelope e("QPE/Obex", "receive(int)" );
190 e << false; 190 e << 0;
191 receiveActive = false; 191 receiveActive = false;
192 receiveStateChanged = true; 192 receiveStateChanged = true;
193 timerEvent(NULL); 193 timerEvent(NULL);
194 break; 194 break;
195 } 195 }
196 case 6: 196 case 6:
197 qDebug("FIXME: Bring up pretty menu...\n"); 197 qDebug("FIXME: Bring up pretty menu...\n");
198 // With table of currently-detected devices. 198 // With table of currently-detected devices.
diff --git a/core/applets/irdaapplet/irda.h b/core/applets/irdaapplet/irda.h
index 97ca3c3..002d295 100644
--- a/core/applets/irdaapplet/irda.h
+++ b/core/applets/irdaapplet/irda.h
@@ -46,17 +46,17 @@ private:
46 46
47private: 47private:
48 QPixmap irdaOnPixmap; 48 QPixmap irdaOnPixmap;
49 QPixmap irdaOffPixmap; 49 QPixmap irdaOffPixmap;
50 QPixmap irdaDiscoveryOnPixmap; 50 QPixmap irdaDiscoveryOnPixmap;
51 QPixmap receiveActivePixmap; 51 QPixmap receiveActivePixmap;
52 int irdaactive; // bool and bitfields later bool irdaactive :1 ; 52 int irdaactive; // bool and bitfields later bool irdaactive :1 ;
53 int irdaDiscoveryActive; 53 int irdaDiscoveryActive;
54 bool receiveActive; 54 bool receiveActive : 1;
55 bool receiveStateChanged; 55 bool receiveStateChanged;
56private slots: 56private slots:
57 57
58 58
59}; 59};
60 60
61 61
62#endif // __SCREENSHOT_APPLET_H__ 62#endif // __SCREENSHOT_APPLET_H__