-
Notifications
You must be signed in to change notification settings - Fork 0
/
MailUser.h
37 lines (33 loc) · 1.37 KB
/
MailUser.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
//---------------------------------------------------------------------------
#ifndef MailUserH
#define MailUserH
#include <stdlib.h>
//---------------------------------------------------------------------------
class PACKAGE TMailUser : public TCollectionItem
{
private:
AnsiString *Name;
TStringList *Email;
int AddressCount;
AnsiString *ValidNameChars;
AnsiString *ValidEmailChars;
bool __fastcall SelectEmailChar(AnsiString c);
bool __fastcall SelectNameChar(AnsiString c);
void __fastcall ExtractAddress(AnsiString s, AnsiString *addr);
void __fastcall ExtractName(AnsiString s, AnsiString *n);
public:
__fastcall TMailUser(TCollection* Collection);
__fastcall ~TMailUser();
void __fastcall Clear();
void __fastcall SetName(AnsiString name);
void __fastcall AddAddress(AnsiString addr);
int __fastcall GetAddressCount();
AnsiString __fastcall GetAddress(int Num);
AnsiString __fastcall GetName();
AnsiString __fastcall GetValidEmailChars();
void __fastcall SetValidEmailChars(AnsiString chars);
AnsiString __fastcall GetValidNameChars();
void __fastcall SetValidNameChars(AnsiString chars);
};
//---------------------------------------------------------------------------
#endif