PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/guitone-1.0rc5/src/view/dialogs/OpenPrompt.h

#
C Header | 55 lines | 30 code | 8 blank | 17 comment | 0 complexity | d74761aa5dc3b633d17cd603777745a0 MD5 | raw file
Possible License(s): GPL-3.0
  1. /***************************************************************************
  2. * Copyright (C) 2007 by Thomas Keller *
  3. * me@thomaskeller.biz *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation, either version 3 of the License, or *
  8. * (at your option) any later version. *
  9. * *
  10. * This program is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * You should have received a copy of the GNU General Public License *
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>. *
  17. ***************************************************************************/
  18. #ifndef OPEN_PROMPT_H
  19. #define OPEN_PROMPT_H
  20. #include "Dialog.h"
  21. #include "DialogManager.h"
  22. #include "ui_open_prompt.h"
  23. class OpenPrompt : public Dialog, private Ui::OpenPromptDialog
  24. {
  25. Q_OBJECT
  26. public:
  27. OpenPrompt(QWidget *);
  28. ~OpenPrompt();
  29. signals:
  30. void loadFromHandle(const MonotoneHandlePtr &);
  31. void loadFromString(const QString &);
  32. void quitApp();
  33. public slots:
  34. void loadFromStringFailed(const QString &, const QString &);
  35. void updateRecentLists();
  36. private slots:
  37. void openDatabase();
  38. void openWorkspace();
  39. void newServerConnection();
  40. void recentDatabasesChanged(int);
  41. void recentWorkspacesChanged(int);
  42. void recentServersChanged(int);
  43. void checkForPrivateKeys();
  44. private:
  45. DialogManager * dialogManager;
  46. };
  47. #endif