Example #1
0
 private XmppMuc(Context context) {
   mCtx = context;
   mSettings = SettingsManager.getSettingsManager(context);
   mMucHelper = MUCHelper.getMUCHelper(context);
   mDiscussionHistory = new DiscussionHistory();
   // this should disable history replay on MUC rooms
   mDiscussionHistory.setMaxChars(0);
 }
  CommandHandlerBase(MainService mainService, int cmdType, Object... commands) {
    if (sMainService == null) {
      sMainService = mainService;
      sSettingsMgr = SettingsManager.getSettingsManager(sContext);
      sContext = mainService.getBaseContext();
      Cmd.setContext(sContext);
    }
    mCommandMap = new HashMap<String, Cmd>();
    for (Object o : commands) {
      Cmd c = (Cmd) o;
      mCommandMap.put(c.getName(), c);
    }
    mCmdType = cmdType;
    mAnswerTo = null;

    initializeSubCommands();
  }
Example #3
0
 private XmppBuddies(Context context) {
   sContext = context;
   sSettings = SettingsManager.getSettingsManager(context);
 }