2
Kopete Groupwise Protocol
3
createfoldertask.h - Request Task for creating a single folder on the server
5
Copyright (c) 2004 SUSE Linux AG http://www.suse.com
7
Based on Iris, Copyright (C) 2003 Justin Karneges <justin@affinix.com>
9
Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
11
*************************************************************************
13
* This library is free software; you can redistribute it and/or *
14
* modify it under the terms of the GNU Lesser General Public *
15
* License as published by the Free Software Foundation; either *
16
* version 2 of the License, or (at your option) any later version. *
18
*************************************************************************
21
#include "createfoldertask.h"
23
CreateFolderTask::CreateFolderTask(Task* parent): ModifyContactListTask(parent)
28
CreateFolderTask::~CreateFolderTask()
32
void CreateFolderTask::folder( const int parentId, const int sequence, const QString & displayName )
35
lst.append( new Field::SingleField( Field::NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, QString::number( parentId ) ) );
36
lst.append( new Field::SingleField( Field::NM_A_SZ_DISPLAY_NAME, 0, NMFIELD_TYPE_UTF8, displayName ) );
37
lst.append( new Field::SingleField( Field::NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, QString::number( sequence ) ) );
38
createTransfer( "createfolder", lst );
41
#include "createfoldertask.moc"