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();
  }
 private XmppBuddies(Context context) {
   sContext = context;
   sSettings = SettingsManager.getSettingsManager(context);
 }