OSDN Git Service

Vss2Git
[peercast-im/PeerCastIM.git] / c: / Git / PeerCast.root / PeerCast / ui / win32 / Simple_vp / Simple.h
1
2 // ------------------------------------------------
3 // File : simple.h
4 // Date: 4-apr-2002
5 // Author: giles
6 //              
7 // (c) 2002 peercast.org
8 // ------------------------------------------------
9 // This program is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
13
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 // GNU General Public License for more details.
18 // ------------------------------------------------
19
20 #if !defined(AFX_SIMPLE_H__F2E64B1B_62DE_473C_A6B6_E7826D41E0FA__INCLUDED_)
21 #define AFX_SIMPLE_H__F2E64B1B_62DE_473C_A6B6_E7826D41E0FA__INCLUDED_
22
23 #if _MSC_VER > 1000
24 #pragma once
25 #endif // _MSC_VER > 1000
26
27 #include "resource.h"
28
29 // ---------------------------------
30 class MyPeercastInst : public PeercastInstance
31 {
32 public:
33         virtual Sys * APICALL createSys();
34 };
35 // ---------------------------------
36 class MyPeercastApp : public PeercastApplication
37 {
38 public:
39         MyPeercastApp ()
40         {
41                 //logFile.openWriteReplace("log.txt");
42         }
43
44         virtual const char * APICALL getPath();
45
46         virtual const char * APICALL getIniFilename();
47         virtual const char *APICALL getClientTypeOS();
48         virtual void    APICALL openLogFile(); //JP-EX
49         virtual void    APICALL getDirectory(); //JP-EX
50         virtual bool    APICALL clearTemp(); //JP-EX
51         virtual void APICALL printLog(LogBuffer::TYPE t, const char *str);
52
53         virtual void    APICALL updateSettings();
54         virtual void    APICALL notifyMessage(ServMgr::NOTIFY_TYPE, const char *);
55
56         virtual void    APICALL channelStart(ChanInfo *);
57         virtual void    APICALL channelStop(ChanInfo *);
58         virtual void    APICALL channelUpdate(ChanInfo *);
59
60         FileStream      logFile;
61
62 };
63
64
65 #endif // !defined(AFX_SIMPLE_H__F2E64B1B_62DE_473C_A6B6_E7826D41E0FA__INCLUDED_)