kmobiletools
popupnumber.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright (C) 2007 00003 by Marco Gulino <marco@kmobiletools.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the 00017 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 ***************************************************************************/ 00020 #ifndef POPUPNUMBER_H 00021 #define POPUPNUMBER_H 00022 00023 #include <libkmobiletools/kmobiletools_export.h> 00024 00025 #include <kmenu.h> 00026 00030 class KMOBILETOOLS_EXPORT devicesPopup : public KMenu 00031 { 00032 Q_OBJECT 00033 public: 00034 explicit devicesPopup(QWidget *parent = 0); 00035 ~devicesPopup(); 00036 private: 00037 QStringList sl_devices; 00038 public slots: 00039 void activated(QAction *); 00040 signals: 00041 void deviceActivated(const QString &); 00042 }; 00043 class KMOBILETOOLS_EXPORT popupNumber : public KMenu 00044 { 00045 Q_OBJECT 00046 public: 00047 explicit popupNumber(const QString &deviceName, const QString &number, QWidget *parent = 0); 00048 00049 ~popupNumber(); 00050 private: 00051 QString number; 00052 public slots: 00053 void call(const QString &deviceName); 00054 void newSMS(const QString &deviceName); 00055 void newSMS(); 00056 void call(); 00057 }; 00058 00059 #endif
KDE 4.2 API Reference