示例#1
0
 public void doAddAsFriend(long fuid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new AddAsFriendTask(fuid);
     omsService.queueTask(omstask);
     showNotification();
   }
 }
示例#2
0
 public void doContactSync(int peopleid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new ContactSyncTask();
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
示例#3
0
 public void doEventAdd(int p_eid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new EventAddTask();
     omstask.id = p_eid;
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
示例#4
0
 public void doEventSync() {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new EventSyncTask();
     omstask.id = OmsTask.EventSyncID;
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
示例#5
0
 public void doContactLookup(int peopleid) {
   Log.d(TAG, "entering doContactLookup " + peopleid);
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new LookupTask();
     omstask.id = peopleid;
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
示例#6
0
  public void doUpdateContact(
      long fuid,
      long peopleid,
      boolean updatelogo,
      boolean updatebirthday,
      boolean updateemail,
      boolean updatecell) {

    omsService.processUpdateContactInfo(
        fuid, peopleid, updatelogo, updatebirthday, updateemail, updatecell);
  }
示例#7
0
 public void doContactLookup(int[] peopleids) {
   Log.d(TAG, "entering doContactLookup " + peopleids.length);
   boolean ret = service.PromptLoginUI();
   if (ret) {
     for (int i = 0; i < peopleids.length; i++) {
       OmsTask omstask = new LookupTask();
       omstask.id = peopleids[i];
       omsService.queueTask(omstask);
     }
     showNotification();
   }
 }
示例#8
0
 public void doEventAdd(int p_eid, int subcategoryid, int categoryid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     Log.d(TAG, "eid=" + p_eid + " cate=" + categoryid + " sub=" + subcategoryid);
     if (p_eid != -1 && subcategoryid != -1 && categoryid != -1) {
       EventAddTask omstask = new EventAddTask();
       omstask.id = p_eid;
       omstask.subcategoryid = subcategoryid;
       omstask.categoryid = categoryid;
       omsService.queueTask(omstask);
     }
     // showNotification();
   }
 }