1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
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 Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "log_analyser.h"
19 #include "LogSessions.h"
27 static char THIS_FILE
[] = __FILE__
;
30 /////////////////////////////////////////////////////////////////////////////
31 // CLogSessions dialog
34 CLogSessions::CLogSessions(CWnd
* pParent
/*=NULL*/)
35 : CDialog(CLogSessions::IDD
, pParent
)
37 //{{AFX_DATA_INIT(CLogSessions)
43 void CLogSessions::DoDataExchange(CDataExchange
* pDX
)
45 CDialog::DoDataExchange(pDX
);
46 //{{AFX_DATA_MAP(CLogSessions)
47 DDX_Control(pDX
, IDC_LIST1
, m_ListBox
);
48 DDX_LBString(pDX
, IDC_LIST1
, m_StartDate
);
53 BEGIN_MESSAGE_MAP(CLogSessions
, CDialog
)
54 //{{AFX_MSG_MAP(CLogSessions)
58 /////////////////////////////////////////////////////////////////////////////
59 // CLogSessions message handlers
65 void CLogSessions::addLogSession( const CString
& line
)
67 Sessions
.push_back( line
);
74 CString
CLogSessions::getStartDate() const
78 /*if ( m_ListBox.GetCurSel() == LB_ERR )
85 m_ListBox.GetText( m_ListBox.GetCurSel(), res );
90 BOOL
CLogSessions::OnInitDialog()
92 CDialog::OnInitDialog();
94 vector
<CString
>::iterator il
;
95 for (il
=Sessions
.begin(); il
!=Sessions
.end(); ++il
)
97 m_ListBox
.AddString( *il
);