File indexing completed on 2024-04-21 15:42:50

0001 /***************************************************************************
0002     These are the private helper classes of the Smb4KNotification 
0003     namespace.
0004                              -------------------
0005     begin                : So Jun 22 2014
0006     copyright            : (C) 2014-2019 by Alexander Reinholdt
0007     email                : alexander.reinholdt@kdemail.net
0008  ***************************************************************************/
0009 
0010 /***************************************************************************
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  *   This program is distributed in the hope that it will be useful, but   *
0017  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
0018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
0019  *   General Public License for more details.                              *
0020  *                                                                         *
0021  *   You should have received a copy of the GNU General Public License     *
0022  *   along with this program; if not, write to the                         *
0023  *   Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston,*
0024  *   MA 02110-1335, USA                                                    *
0025  ***************************************************************************/
0026 
0027 #ifndef SMB4KNOTIFICATION_P_H
0028 #define SMB4KNOTIFICATION_P_H
0029 
0030 // Qt includes
0031 #include <QObject>
0032 #include <QUrl>
0033 
0034 // KDE includes
0035 #include <KNotifications/KNotification>
0036 
0037 
0038 class Smb4KNotifier : public KNotification
0039 {
0040   Q_OBJECT
0041   
0042   public:
0043     Smb4KNotifier(const QString &event);
0044     ~Smb4KNotifier();
0045     void setMountpoint(const QUrl &mountpoint);
0046     QUrl mountpoint() const;
0047 
0048   public Q_SLOTS:
0049     void slotOpenShare();
0050     
0051   private:
0052     QUrl m_mountpoint;
0053 };
0054 
0055 #endif