Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2008

    Issue with using CLogFilter with multiple criteria


    I am trying to read missed calls recorded after specific time. I am using CLogFilter with SetEventType, SetDirection and SetStartTime.
    If I just set direction to missed, I get correct records. Once I add setting of the start time, I start getting also other (out, in) records.

    There is a short note in API doc (http://www.symbian.com/developer/tec...ing-CLogFilter) which says that ".. the resulting SQL statement simply ORs the conditions so that the WHERE clause contains (Number = 123 Or Contact IS NULL)". I hope this applies only if the two criteria describe the same field. If I specify two criteria for two different fields, I would expect the SQL to use AND between them.

    Is this a bug in API or am I using it wrong way? How is the filter supposed to behave if I use multiple criteria? I tried to use a list of filters, each filter with a single criteria (time or direction), but the behavior was the same.

    Thanks for any info in advance.

  2. #2
    Registered User
    Join Date
    Apr 2008

    Re: Issue with using CLogFilter with multiple criteria

    I've found what is causing my issue.
    It is the fact, that each incoming GSM call is first stored in Call Logs as Missed call (while ringing) and only after it is answered or rejected, it is changed to Incoming.
    This temporary Missed call state causes my application to read the call from the call log even though it is later changed to Incoming and it also caused all my confusion about CLogFilter class.

    If admin finds this information useful, keep this thread. If not, please, delete it.

Similar Threads

  1. Replies: 3
    Last Post: 2012-06-20, 11:48
  2. MMS message multiple slides issue [SMIL]
    By hrmhrmhrmhrm in forum General Messaging
    Replies: 0
    Last Post: 2007-07-24, 02:13
  3. RTSP video streaming issue on 6280
    By olivier_irac in forum General Development Questions
    Replies: 0
    Last Post: 2006-12-04, 15:11
  4. CLogViewRecent with CLogFilter
    By kklaine in forum Symbian
    Replies: 1
    Last Post: 2004-04-15, 12:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts