kmobiletools
popupsms.cpp
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 #include "popupsms.h" 00021 #include <kicon.h> 00022 #include <kdebug.h> 00023 #include <klocale.h> 00024 using namespace KMobileTools; 00025 00026 popupSMS::popupSMS(KMobileTools::SMS *sms, QWidget *parent) 00027 : KMenu(parent) 00028 { 00029 p_sms=sms; 00030 addTitle( KIcon( "mail-message" ), i18n("SMS") ); 00031 addAction(KIcon("edit-delete"), i18n("Delete"), this, SLOT(slotRemove())); 00032 } 00033 00034 00035 popupSMS::~popupSMS() 00036 { 00037 } 00038 00039 00040 #include "popupsms.moc" 00041 00042 void popupSMS::slotRemove() 00043 { 00044 emit remove( p_sms ); 00045 }
KDE 4.2 API Reference