/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * * Create New Profile Header * * Copyright (c) 2011-2014 Mark Watkins * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of the Linux * distribution for more details. */ #ifndef NEWPROFILE_H #define NEWPROFILE_H #include namespace Ui { class NewProfile; } /*! \class NewProfile \author Mark Watkins \brief Profile creation/editing wizard */ class NewProfile : public QDialog { Q_OBJECT public: explicit NewProfile(QWidget *parent = 0); ~NewProfile(); //! \brief When used in edit mode, this skips the first page void skipWelcomeScreen(); //! \brief Open profile named 'name' for editing, loading all it's content void edit(const QString name); private slots: //! \brief Validate each step and move to the next page, saving at the end if requested. void on_nextButton_clicked(); //! \brief Go back to the previous wizard page void on_backButton_clicked(); void on_cpapModeCombo_activated(int index); void on_agreeCheckbox_clicked(bool checked); void on_passwordEdit1_editingFinished(); void on_passwordEdit2_editingFinished(); void on_heightCombo_currentIndexChanged(int index); private: Ui::NewProfile *ui; bool m_editMode; int m_firstPage; bool m_passwordHashed; }; #endif // NEWPROFILE_H