1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-16 16:44:48 +02:00
Smack/source/org/jivesoftware/smackx/search/UserSearchManager.java
Derek DeMoro 7f9129ee9b Remove bogus test.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2831 b35dd754-fafc-0310-a699-88a17e54d16e
2005-09-17 05:24:00 +00:00

53 lines
1.3 KiB
Java

/**
* $RCSfile: ,v $
* $Revision: $
* $Date: $
*
* Copyright (C) 1999-2005 Jive Software. All rights reserved.
*
* This software is the proprietary information of Jive Software.
* Use is subject to license terms.
*/
package org.jivesoftware.smackx.search;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smackx.Form;
import org.jivesoftware.smackx.ReportedData;
public class UserSearchManager {
private XMPPConnection con;
private String serviceName;
private UserSearch userSearch;
public UserSearchManager(XMPPConnection con, String serviceName) {
this.con = con;
this.serviceName = serviceName;
userSearch = new UserSearch();
}
public Form getSearchForm() {
try {
return userSearch.getSearchForm(con, serviceName);
}
catch (XMPPException e) {
e.printStackTrace();
}
return null;
}
public ReportedData sendSearchForm(Form searchForm) {
ReportedData data = null;
try {
data = userSearch.sendSearchForm(con, searchForm, serviceName);
}
catch (XMPPException e) {
e.printStackTrace();
}
return data;
}
}