blob: cb8b292e735cf7425b89d866fa2c57106e7c632e (
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
|
//
// C++ Implementation: coreprotocol_test
//
// Description:
//
//
// Author: Kopete Developers <kopete-devel@kde.org>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "requestfactory.h"
#include "request.h"
#include "usertransfer.h"
#include "coreprotocol.h"
int main()
{
CoreProtocol testObject;
RequestFactory testFactory;
TQCString command("login");
Request * firstRequest = testFactory.request( command );
Field::FieldList lst;
lst.append( new Field::SingleField( NM_A_SZ_USERID, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_UTF8, "blah@fasel.org" ) );
firstRequest->setFields( lst );
testObject.outgoingTransfer( firstRequest );
return 0;
}
|