This repository was archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArchWriter.h
executable file
·46 lines (41 loc) · 1.67 KB
/
ArchWriter.h
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
/*
written for Imp-GG project
Copyright (C) 2005 Skolima (skolima.prv.pl)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
class ArchWriter
{
public:
ArchWriter(void);
~ArchWriter(void);
//przygotowuje archiwum do zapisu
//sprawdŸ czego oczekuje konkretna implementacja!
virtual bool Prepare(void* params) = 0;
//ustawia UID w³aœcieciela
virtual void setOwnerUID(char* UID) = 0;
// ustawia czas odebrania aktualnej wiadomosci
virtual void setMsgTime(cTime64) = 0;
// nadawca aktualnej wiadomosci
virtual void setMsgSenderUID(char* UID) = 0;
// odbiorca aktualnej wiadomosci
virtual void setMsgReceiverUID(char* UID) = 0;
// tekst aktualnie prztwarzanej wiadomosci
virtual void setMsgText(char* text) = 0;
// true jeœli wiadomoœæ wys³ana, false jeœli odebrana
virtual void setMsgWasSent(bool wasSent) = 0;
//dodaje aktualn¹ wiadomoœæ
//zwraca true jeœli wszystko posz³o dobrze
//za³o¿enie wiadomoœci s¹ dodawane wg. kolejnoœci czasowej
virtual bool addMsg(void) = 0;
};