[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Having trouble with Kab API
From:       Mike Pilone <mpilone () slac ! com>
Date:       1998-12-30 15:58:19
[Download RAW message or body]

Hello,

I am having trouble using the KabAPI class. I create an instance of the
api, then initialize it, then attempt to add to it. At this point I get a
permission denied error. From what I can tell I am doing things right.
When I run kabapi_test it also fails when it tries to use the api.add()
method.

I don't want the gui to appear, I just want to add/remove/update the
database.

Below I attached the code I am using. any suggestions or reports from
people who got this to work would be great.

-- 8< --------

AddressBook::Entry entry;
QString key = <someNumber>;
KabAPI kab;

if (kab.init(false) != KabAPI::NoError))
  {
    cout << "There was an error initializing" << endl;
  }

else
  {
    switch(kab.add(entry, (const char*)key, false))
     {
       case KabAPI::PermDenied:
         cout << "Perm Denied" << endl;
         break;
     
       default:
         cout << "An Error Occured" << endl;
         break;
     }
  }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic