com.beem.project.beem.service
Class RosterAdapter

Package class diagram package RosterAdapter
java.lang.Object
  extended by android.os.Binder
      extended by com.beem.project.beem.service.aidl.IRoster.Stub
          extended by com.beem.project.beem.service.RosterAdapter
All Implemented Interfaces:
IBinder, IInterface, IRoster

public class RosterAdapter
extends IRoster.Stub

This class implement a Roster adapter for BEEM.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.beem.project.beem.service.aidl.IRoster
IRoster.Stub
 
Nested classes/interfaces inherited from interface android.os.IBinder
IBinder.DeathRecipient
 
Field Summary
 
Fields inherited from interface android.os.IBinder
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, PING_TRANSACTION
 
Constructor Summary
RosterAdapter(Roster roster, Context context)
          Constructor.
RosterAdapter(Roster roster, Context context, AvatarManager avatarMgr)
          Constructor.
 
Method Summary
 boolean addContact(String user, String name, String[] groups)
          
 void addContactToGroup(String groupName, String jid)
           
 void addRosterListener(IBeemRosterListener listen)
          
 void createGroup(String groupname)
          
 void deleteContact(Contact contact)
          
 Contact getContact(String jid)
          
 List<Contact> getContactList()
          
 List<String> getGroupsNames()
          
 PresenceAdapter getPresence(String jid)
           
 void removeContactFromGroup(String groupName, String jid)
           
 void removeRosterListener(IBeemRosterListener listen)
          
 void setContactName(String jid, String name)
          
 
Methods inherited from class com.beem.project.beem.service.aidl.IRoster.Stub
asBinder, asInterface, onTransact
 
Methods inherited from class android.os.Binder
attachInterface, clearCallingIdentity, dump, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RosterAdapter

public RosterAdapter(Roster roster,
                     Context context)
Constructor.

Parameters:
roster - The roster to adapt.
context - The context of the RosterAdapter.

RosterAdapter

public RosterAdapter(Roster roster,
                     Context context,
                     AvatarManager avatarMgr)
Constructor.

Parameters:
roster - The roster to adapt.
context - The context of the RosterAdapter.
avatarMgr - The AvatarManager of the connection
Method Detail

addRosterListener

public void addRosterListener(IBeemRosterListener listen)
                       throws RemoteException

Throws:
RemoteException

addContact

public boolean addContact(String user,
                          String name,
                          String[] groups)
                   throws RemoteException

Throws:
RemoteException

deleteContact

public void deleteContact(Contact contact)
                   throws RemoteException

Throws:
RemoteException

createGroup

public void createGroup(String groupname)
                 throws RemoteException

Throws:
RemoteException

getContact

public Contact getContact(String jid)
                   throws RemoteException

Throws:
RemoteException

getContactList

public List<Contact> getContactList()
                             throws RemoteException

Throws:
RemoteException

getGroupsNames

public List<String> getGroupsNames()
                            throws RemoteException

Throws:
RemoteException

removeRosterListener

public void removeRosterListener(IBeemRosterListener listen)
                          throws RemoteException

Throws:
RemoteException

setContactName

public void setContactName(String jid,
                           String name)
                    throws RemoteException

Throws:
RemoteException

getPresence

public PresenceAdapter getPresence(String jid)
                            throws RemoteException
Throws:
RemoteException

addContactToGroup

public void addContactToGroup(String groupName,
                              String jid)
                       throws RemoteException
Throws:
RemoteException

removeContactFromGroup

public void removeContactFromGroup(String groupName,
                                   String jid)
                            throws RemoteException
Throws:
RemoteException


Copyright © 2009 Beem-project.com. All Rights Reserved.