Back to index

im-sdk  12.3.91
Functions
imaux.h File Reference
#include "iiimqccontext.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void iiim_aux_start (IIIMInputContext *context_iiim, IIIMCF_event ev)
void iiim_aux_draw (IIIMInputContext *context_iiim, IIIMCF_event ev)
void iiim_aux_done (IIIMInputContext *context_iiim, IIIMCF_event ev)
void iiim_aux_getvalues_reply (IIIMInputContext *context_iiim, IIIMCF_event ev)
IIIMF_status iiim_setup_aux_object (IIIMCF_handle iiim)
void IIim_aux_destrory_ic (IIIMInputContext *context_iiim)
void IIim_aux_set_icfocus (IIIMInputContext *context_iiim)
void IIim_aux_unset_icfocus (IIIMInputContext *context_iiim)

Function Documentation

void IIim_aux_destrory_ic ( IIIMInputContext *  context_iiim)

Definition at line 295 of file imaux.cpp.

{
  delete_aux_ic(context_iiim);
}

Here is the call graph for this function:

void iiim_aux_done ( IIIMInputContext *  context_iiim,
IIIMCF_event  ev 
)

Definition at line 210 of file imaux.cpp.

{
  aux_t *aux;
  AUXComposed ac;

  aux = aux_get (context_iiim, ev, NULL);
  if (!aux)
    return;

  memset(&ac, 0, sizeof(ac));
  ac.aux = aux;
  ac.ev = ev;

  aux->im->ae->dir.method->done(aux,
                            (const unsigned char *) &ac,
                            0); 
  return;
}

Here is the call graph for this function:

void iiim_aux_draw ( IIIMInputContext *  context_iiim,
IIIMCF_event  ev 
)

Definition at line 189 of file imaux.cpp.

{
  aux_t *aux;
  AUXComposed ac;

  aux = aux_get (context_iiim, ev, NULL);
  if (!aux)
    return;

  memset(&ac, 0, sizeof(ac));
  ac.aux = aux;
  ac.ev = ev;

  aux->im->ae->dir.method->draw(aux,
                            (const unsigned char *) &ac,
                            0);
  return;
}

Here is the call graph for this function:

void iiim_aux_getvalues_reply ( IIIMInputContext *  context_iiim,
IIIMCF_event  ev 
)

Definition at line 231 of file imaux.cpp.

{
  aux_t *aux;
  AUXComposed ac;

  aux = aux_get (context_iiim, ev, NULL);
  if (!aux)
    return;

  memset(&ac, 0, sizeof(ac));
  ac.aux = aux;
  ac.ev = ev;

  if (aux->im->ae->dir.method->getvalues_reply)
      aux->im->ae->dir.method->getvalues_reply(aux,
                                          (const unsigned char *) &ac,
                                          0); 
  return;
}

Here is the call graph for this function:

void IIim_aux_set_icfocus ( IIIMInputContext *  context_iiim)

Definition at line 301 of file imaux.cpp.

{
  aux_t *aux;
  aux_im_data_t *aux_im;

  aux = aux_get (context_iiim, NULL, (IIIMP_card16 *)"");
  if (!aux)
    return;

  for (aux_im = aux->im_list; aux_im; aux_im = aux_im->next)
    {
      if (aux_im->ae->if_version >= AUX_IF_VERSION_2 &&
              aux_im->ae->dir.method->set_icforcus != NULL)
       {
         aux->im = aux_im;
         aux_im->ae->dir.method->set_icforcus(aux);
       }
    }
}

Here is the call graph for this function:

void iiim_aux_start ( IIIMInputContext *  context_iiim,
IIIMCF_event  ev 
)

Definition at line 163 of file imaux.cpp.

{
  aux_t *aux;
  AUXComposed ac;

  aux = aux_get (context_iiim, ev, NULL);
  if (!aux)
  {
    g_message("aux is null\n");
    return;
  }

  DEBUG_DO(printf("**IMAUX: iiim_aux_start(), name is %s\n", convert_to_string(aux->im->ae->dir.name.ptr)));

  memset(&ac, 0, sizeof(ac));
  ac.aux = aux;
  ac.ev = ev;

  aux->im->ae->dir.method->start (aux, 
                              (const unsigned char *) &ac,
                              0); 
  return;
}

Here is the call graph for this function:

void IIim_aux_unset_icfocus ( IIIMInputContext *  context_iiim)

Definition at line 322 of file imaux.cpp.

{
  aux_t *aux;
  aux_im_data_t *aux_im;

  aux = aux_get (context_iiim, NULL, (IIIMP_card16 *)"\0");
  if (!aux)
    return;

  for (aux_im = aux->im_list; aux_im; aux_im = aux_im->next)
    {
      if (aux_im->ae->if_version >= AUX_IF_VERSION_2 &&
              aux_im->ae->dir.method->set_icforcus != NULL)
       {
         aux->im = aux_im;
         aux_im->ae->dir.method->unset_icforcus(aux);
       }
    }
}

Here is the call graph for this function:

Definition at line 238 of file imaux.c.

{
  IIIMF_status st;
  IIIMCF_object_descriptor *pdesc;
  IIIMCF_object_descriptor **ppdescs;
  IIIMCF_downloaded_object *pobjs;
  int i, n1, n2;

  n1 = 0;
  pdesc = NULL;
  st = iiimcf_get_object_descriptor_list (iiim, &n1, &pdesc);

  if (st != IIIMF_STATUS_SUCCESS)
    return st;

  pobjs = g_new0 (IIIMCF_downloaded_object, n1);
  ppdescs = g_new0 (IIIMCF_object_descriptor*, n1);

  for (i = 0, n2 = 0; i < n1; i++, pdesc++)
    {
      if (pdesc->predefined_id == IIIMP_IMATTRIBUTE_BINARY_GUI_OBJECT)
       ppdescs[n2++] = pdesc;
    }
  if (n2 > 0)
    {
      st =  iiimcf_get_downloaded_objects (iiim, n2, ppdescs, pobjs);
      if (st != IIIMF_STATUS_SUCCESS)
       {
         g_free (ppdescs);
         g_free (pobjs);
         return st;
       }
      for (i = 0; i < n2; i++)
       iiim_aux_download (pobjs[i]);
    }
  g_free (ppdescs);
  g_free (pobjs);

  return IIIMF_STATUS_SUCCESS;
}

Here is the call graph for this function:

Here is the caller graph for this function: