~wosh-dev/wosh/trunk

« back to all changes in this revision

Viewing changes to src/framework/gui/components/DialogNetwork.h

  • Committer: alexpls
  • Date: 2011-01-17 06:02:56 UTC
  • Revision ID: svn-v4:9c797490-39bb-4552-981d-a380e5b88e28:trunk:494
commit 2/2

see changelog 0.8.711

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @class   wosh::gui::DialogNetwork
 
3
 * @brief   User Login dialog.
 
4
 *
 
5
 *
 
6
 * \image html extras/screenshots/WOSH.GUI.DialogNetwork.1.png "DialogNetwork: Password Authentication"
 
7
 * \image html extras/screenshots/WOSH.GUI.DialogNetwork.2.png "DialogNetwork: OS Authentication"
 
8
 *
 
9
 ****************************************************************************
 
10
 * @version 0.8.499 $Id: DialogNetwork.h 3775 2011-01-01 16:38:17Z alex $
 
11
 * @author  Alessandro Polo
 
12
 ****************************************************************************/
 
13
/* Copyright (c) 2007-2011, WOSH - Wide Open Smart Home 
 
14
 * by Alessandro Polo - OpenSmartHome.com
 
15
 * All rights reserved.
 
16
 *
 
17
 * Redistribution and use in source and binary forms, with or without
 
18
 * modification, are permitted provided that the following conditions are met:
 
19
 *     * Redistributions of source code must retain the above copyright
 
20
 *       notice, this list of conditions and the following disclaimer.
 
21
 *     * Redistributions in binary form must reproduce the above copyright
 
22
 *       notice, this list of conditions and the following disclaimer in the
 
23
 *       documentation and/or other materials provided with the distribution.
 
24
 *     * Neither the name of the OpenSmartHome.com WOSH nor the
 
25
 *       names of its contributors may be used to endorse or promote products
 
26
 *       derived from this software without specific prior written permission.
 
27
 *
 
28
 * THIS SOFTWARE IS PROVIDED BY Alessandro Polo ''AS IS'' AND ANY
 
29
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
30
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
31
 * DISCLAIMED. IN NO EVENT SHALL Alessandro Polo BE LIABLE FOR ANY
 
32
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
33
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 
34
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 
35
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
36
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 
37
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
38
 ****************************************************************************/
 
39
 
 
40
#ifndef __WOSH_Gui_DialogNetwork_H__
 
41
 #define __WOSH_Gui_DialogNetwork_H__
 
42
 
 
43
 #include <core/Object.h>
 
44
 #include <core/SecurityAuthentication.h>
 
45
 #include <core/FileSystem.h>
 
46
 #include <QtGui/QDialog>
 
47
 #include <QAbstractTableModel>
 
48
 
 
49
 
 
50
namespace Ui {
 
51
 class DialogNetwork;
 
52
};
 
53
namespace wosh {
 
54
 class Session;
 
55
 namespace security {
 
56
   class AuthenticationProviderPassword;
 
57
   class AuthenticationProviderOS;
 
58
   class AuthenticationProviderMedia;
 
59
  }
 
60
 namespace gui {
 
61
 
 
62
 
 
63
class DialogNetwork :  public QDialog, public Object
 
64
 {
 
65
        Q_OBJECT
 
66
 
 
67
        WOSH_CLASSNAME(wosh::gui::DialogNetwork)
 
68
 
 
69
        public:
 
70
                DialogNetwork(QWidget *parent = 0);
 
71
                virtual ~DialogNetwork();
 
72
 
 
73
        protected slots:
 
74
                void accept();
 
75
 
 
76
        protected:
 
77
                void changeEvent(QEvent *e);
 
78
 
 
79
        protected:
 
80
        private:
 
81
                Ui::DialogNetwork *m_ui;
 
82
 
 
83
}; // class def
 
84
 
 
85
 }; // namespace gui
 
86
}; // namespace wosh
 
87
 
 
88
 
 
89
#endif //__WOSH_Gui_DialogNetwork_H__