Beispiel #1
0
 public void doAddAsFriend(long fuid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new AddAsFriendTask(fuid);
     omsService.queueTask(omstask);
     showNotification();
   }
 }
Beispiel #2
0
 public void doContactSync(int peopleid) {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new ContactSyncTask();
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
Beispiel #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();
   }
 }
Beispiel #4
0
 public void doEventSync() {
   boolean ret = service.PromptLoginUI();
   if (ret) {
     OmsTask omstask = new EventSyncTask();
     omstask.id = OmsTask.EventSyncID;
     omsService.queueTask(omstask);
     // showNotification();
   }
 }
Beispiel #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();
   }
 }
Beispiel #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);
  }
Beispiel #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();
   }
 }
Beispiel #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();
   }
 }