10-05-2012 08:08 PM
I'm trying to add a notebook using the notebook service but it seems that the API is not supported.
Here is my code:
AccountKey accountKey = AccountService().defaultAccount( Service::Notebook ).id();
Notebook m_notebook;
m_notebook.setName( "test" );
NotebookServiceResult::Type result = m_notebookService->addNotebook( &m_notebook, accountKey );
if (result == NotebookServiceResult::Success)
qDebug() << "SUCESSFUL";
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error 501: Not Implemented</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd; padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error 501: Not Implement...
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
Status Code 4
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
Exception String Error while parsing response.
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
NotebookService PIM Core exception!
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
Error code: 4
Oct 05 19:54:55.605 com.example.BBLTest.testDev_Testc23c2e27.63082699.
Exception details: Error while parsing response.
10-06-2012 03:31 AM
10-06-2012 12:38 PM
Yes I did. I am able to add notbook entries to the default notebook.
It's only when I want to add a new notebook.
10-10-2012 07:36 PM
I abondonded using the notebook service and created my own notebook service. since it seems the API is not implemented.