summaryrefslogtreecommitdiffabout
path: root/T42Document.h
Unidiff
Diffstat (limited to 'T42Document.h') (more/less context) (ignore whitespace changes)
-rw-r--r--T42Document.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/T42Document.h b/T42Document.h
new file mode 100644
index 0000000..fd59368
--- a/dev/null
+++ b/T42Document.h
@@ -0,0 +1,81 @@
1// T42Document.h : header file
2//
3
4/////////////////////////////////////////////////////////////////////////////
5// T42Document document
6
7class T42Document;
8class T42View;
9
10 class CT42Robot{
11public:
12 T42Document* m_pDocument;
13
14 CT42Robot() : m_pDocument(NULL){}
15 virtual ~CT42Robot() {}
16
17 virtual BOOL OnAttach(T42Document* pDocument) {
18 m_pDocument = pDocument;
19 return TRUE;
20 }
21 virtual BOOL OnDetach() { return TRUE; }
22
23 virtual BOOL OnConnect() { return TRUE; }
24 virtual BOOL OnReceive(char*,int){ return TRUE; }
25 virtual BOOL OnDisconnect() { return TRUE; }
26
27 virtual BOOL OnIPResolved() { return TRUE; }
28
29 virtual BOOL OnMinute() { return TRUE; }
30};
31
32class T42Document : public CDocument
33{
34protected:
35 T42Document(); // protected constructor used by dynamic creation
36 DECLARE_DYNCREATE(T42Document)
37
38// Attributes
39public:
40 void OnMinute();
41 BOOL m_bHidden;
42 BOOL SendOver(LPCTSTR str);
43 BOOL DetachRobot();
44 BOOL AttachRobot(CT42Robot* pRobot);
45 CT42Robot* m_pRobot;
46 void AutosaveLayout();
47 void SaveLayout();
48 T42View* m_pView;
49 void Talk(LPCTSTR from=NULL,LPCTSTR to=NULL,LPCTSTR tty=NULL,BOOL bPrompt=FALSE);
50
51// Operations
52public:
53
54// Overrides
55 // ClassWizard generated virtual function overrides
56 //{{AFX_VIRTUAL(T42Document)
57 public:
58 virtual void Serialize(CArchive& ar); // overridden for document i/o
59 virtual void OnChangedViewList();
60 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
61 protected:
62 virtual BOOL OnNewDocument();
63 //}}AFX_VIRTUAL
64
65// Implementation
66public:
67 virtual ~T42Document();
68#ifdef _DEBUG
69 virtual void AssertValid() const;
70 virtual void Dump(CDumpContext& dc) const;
71#endif
72
73 // Generated message map functions
74protected:
75 //{{AFX_MSG(T42Document)
76 afx_msg void OnWindowSavelayout();
77 afx_msg void OnUpdateWindowAutosavelayout(CCmdUI* pCmdUI);
78 afx_msg void OnWindowAutosavelayout();
79 //}}AFX_MSG
80 DECLARE_MESSAGE_MAP()
81};