summaryrefslogtreecommitdiff
path: root/IvyFileMon/IvyFileMonDlg.h
blob: ffec31a53eb659953839765f273415fb54a0ea6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// IvyFileMonDlg.h : fichier d'en-tête
//

#pragma once

#include "Ivy.h"
#include "afxwin.h"

#include "DirectoryChanges.h"
#include "HistoryEdit.h"

// boîte de dialogue CIvyFileMonDlg
class CIvyFileMonDlg : public CDialog,  public IvyApplicationCallback, public CDirectoryChangeHandler
{
// Construction
public:
	CIvyFileMonDlg(CWnd* pParent = NULL);	// constructeur standard

// Données de la boîte de dialogue
	enum { IDD = IDD_IVYFILEMON_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// prise en charge de DDX/DDV
	virtual void OnCancel();

// Implémentation
protected:
	HICON m_hIcon;
	
	Ivy *bus;
	void WriteMessage(const char * format, ...);
	void OnApplicationConnected( IvyApplication *app );
	void OnApplicationDisconnected( IvyApplication *app );
	void OnDirectMessage( IvyApplication *app, int id, const char *arg );
	void SendIvyFile( const CString & strFileName );

	// Directory Handler
	CDirectoryChangeWatcher watcher;
	virtual void On_FileAdded(const CString & strFileName);
	virtual void On_FileModified(const CString & strFileName);
	
	// Fonctions générées de la table des messages
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CString m_busnumber;
	CString m_directory;
	CString m_prefix;
	afx_msg void OnBnClickedStart();
	CHistoryEdit m_text;
	CString m_extent;
};