1 /*
2  * The olsr.org Optimized Link-State Routing daemon (olsrd)
3  *
4  * (c) by the OLSR project
5  *
6  * See our Git repository to find out who worked on this file
7  * and thus is a copyright holder on it.
8  *
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * * Redistributions of source code must retain the above copyright
16  *   notice, this list of conditions and the following disclaimer.
17  * * Redistributions in binary form must reproduce the above copyright
18  *   notice, this list of conditions and the following disclaimer in
19  *   the documentation and/or other materials provided with the
20  *   distribution.
21  * * Neither the name of olsr.org, olsrd nor the names of its
22  *   contributors may be used to endorse or promote products derived
23  *   from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
28  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
31  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36  * POSSIBILITY OF SUCH DAMAGE.
37  *
38  * Visit http://www.olsr.org for more information.
39  *
40  * If you find this software useful feel free to make a donation
41  * to the project. For more information see the website or contact
42  * the copyright holders.
43  *
44  */
45 
46 #ifdef _WIN32
47 
48 #if !defined(AFX_MYDIALOG3_H__1A381668_A36B_4C51_9B79_643BC2A59D88__INCLUDED_)
49 #define AFX_MYDIALOG3_H__1A381668_A36B_4C51_9B79_643BC2A59D88__INCLUDED_
50 
51 #if defined _MSC_VER && _MSC_VER > 1000
52 #pragma once
53 #endif /* defined _MSC_VER && _MSC_VER > 1000 */
54 
55 #include "NodeEntry.h"
56 
57 class NodeInfo {
58 public:
59   CStringArray MprList;
60   CStringArray MidList;
61   CStringArray HnaList;
62 };
63 
64 class MyDialog3:public CDialog {
65 public:
66   MyDialog3(CWnd * pParent = NULL);
67 
68   BOOL Create(CWnd * Parent);
69 
70   void UpdateNodeInfo(CList < class NodeEntry, class NodeEntry & >&);
71   void ClearNodeInfo(void);
72 
73   //{{AFX_DATA(MyDialog3)
74   enum { IDD = IDD_DIALOG3 };
75   CListCtrl m_HnaList;
76   CListCtrl m_MidList;
77   CListCtrl m_MprList;
78   CListCtrl m_NodeList;
79   //}}AFX_DATA
80 
81   //{{AFX_VIRTUAL(MyDialog3)
82 protected:
83     virtual void DoDataExchange(CDataExchange * pDX);
84   //}}AFX_VIRTUAL
85 
86 protected:
87   unsigned __int64 LastUpdate;
88   class NodeInfo *Info;
89 
90   //{{AFX_MSG(MyDialog3)
91   afx_msg void OnOK();
92   afx_msg void OnCancel();
93   virtual BOOL OnInitDialog();
94   afx_msg void OnItemchangedNodeList(NMHDR * pNMHDR, LRESULT * pResult);
95   //}}AFX_MSG
96   DECLARE_MESSAGE_MAP()};
97 
98 //{{AFX_INSERT_LOCATION}}
99 
100 #endif /* !defined(AFX_MYDIALOG3_H__1A381668_A36B_4C51_9B79_643BC2A59D88__INCLUDED_) */
101 
102 #endif /* _WIN32 */
103 
104 /*
105  * Local Variables:
106  * c-basic-offset: 2
107  * indent-tabs-mode: nil
108  * End:
109  */
110