/src/kandas-client/adddialog.h

http://kandas.googlecode.com/ · C Header · 51 lines · 27 code · 7 blank · 17 comment · 0 complexity · d7d5a1a19c975b2e1448d536b9401350 MD5 · raw file

  1. /***************************************************************************
  2. * Copyright 2009 Stefan Majewsky <majewsky@gmx.net>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. ***************************************************************************/
  18. #ifndef KANDAS_CLIENT_ADDDIALOG_H
  19. #define KANDAS_CLIENT_ADDDIALOG_H
  20. #include <KDialog>
  21. #include "ui_adddialog.h"
  22. namespace Kandas
  23. {
  24. namespace Client
  25. {
  26. class Manager;
  27. class AddDialog : public KDialog
  28. {
  29. Q_OBJECT
  30. public:
  31. AddDialog(Kandas::Client::Manager *manager);
  32. public Q_SLOTS:
  33. void showDialog();
  34. private Q_SLOTS:
  35. void handleInput();
  36. void handleOkClicked();
  37. private:
  38. Kandas::Client::Manager *m_manager;
  39. QWidget *m_widget;
  40. Ui::AddDialogWidget m_ui;
  41. };
  42. }
  43. }
  44. #endif // KANDAS_CLIENT_ADDDIALOG_H