Merge lp:~mzanetti/reminders-app/integrate-plugin into lp:reminders-app

Proposed by Michael Zanetti
Status: Merged
Approved by: David Planella
Approved revision: 16
Merged at revision: 7
Proposed branch: lp:~mzanetti/reminders-app/integrate-plugin
Merge into: lp:reminders-app
Diff against target: 83497 lines (+82168/-99)
210 files modified
.bzrignore (+1/-0)
3rdParty/3rdParty.pro (+4/-0)
3rdParty/evernote-sdk-cpp/.git/HEAD (+1/-0)
3rdParty/evernote-sdk-cpp/.git/config (+11/-0)
3rdParty/evernote-sdk-cpp/.git/description (+1/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/applypatch-msg.sample (+15/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/commit-msg.sample (+24/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/post-update.sample (+8/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/pre-applypatch.sample (+14/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/pre-commit.sample (+50/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/pre-push.sample (+53/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/pre-rebase.sample (+169/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/prepare-commit-msg.sample (+36/-0)
3rdParty/evernote-sdk-cpp/.git/hooks/update.sample (+128/-0)
3rdParty/evernote-sdk-cpp/.git/info/exclude (+6/-0)
3rdParty/evernote-sdk-cpp/.git/logs/HEAD (+1/-0)
3rdParty/evernote-sdk-cpp/.git/logs/refs/heads/master (+1/-0)
3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes/origin/HEAD (+1/-0)
3rdParty/evernote-sdk-cpp/.git/packed-refs (+3/-0)
3rdParty/evernote-sdk-cpp/.git/refs/heads/master (+1/-0)
3rdParty/evernote-sdk-cpp/.git/refs/remotes/origin/HEAD (+1/-0)
3rdParty/evernote-sdk-cpp/APACHE-LICENSE-2.0.txt (+202/-0)
3rdParty/evernote-sdk-cpp/LICENSE (+27/-0)
3rdParty/evernote-sdk-cpp/NOTICE (+5/-0)
3rdParty/evernote-sdk-cpp/README.md (+14/-0)
3rdParty/evernote-sdk-cpp/evernote-sdk-cpp.pro (+35/-0)
3rdParty/evernote-sdk-cpp/src/Errors_constants.cpp (+16/-0)
3rdParty/evernote-sdk-cpp/src/Errors_constants.h (+23/-0)
3rdParty/evernote-sdk-cpp/src/Errors_types.cpp (+236/-0)
3rdParty/evernote-sdk-cpp/src/Errors_types.h (+179/-0)
3rdParty/evernote-sdk-cpp/src/Limits_constants.cpp (+320/-0)
3rdParty/evernote-sdk-cpp/src/Limits_constants.h (+163/-0)
3rdParty/evernote-sdk-cpp/src/Limits_types.cpp (+10/-0)
3rdParty/evernote-sdk-cpp/src/Limits_types.h (+20/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore.cpp (+25986/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore.h (+10962/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore_constants.cpp (+16/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore_constants.h (+23/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore_types.cpp (+2532/-0)
3rdParty/evernote-sdk-cpp/src/NoteStore_types.h (+1072/-0)
3rdParty/evernote-sdk-cpp/src/Types_constants.cpp (+28/-0)
3rdParty/evernote-sdk-cpp/src/Types_constants.h (+29/-0)
3rdParty/evernote-sdk-cpp/src/Types_types.cpp (+4212/-0)
3rdParty/evernote-sdk-cpp/src/Types_types.h (+2203/-0)
3rdParty/evernote-sdk-cpp/src/UserStore.cpp (+3753/-0)
3rdParty/evernote-sdk-cpp/src/UserStore.h (+1724/-0)
3rdParty/evernote-sdk-cpp/src/UserStore_constants.cpp (+20/-0)
3rdParty/evernote-sdk-cpp/src/UserStore_constants.h (+25/-0)
3rdParty/evernote-sdk-cpp/src/UserStore_types.cpp (+662/-0)
3rdParty/evernote-sdk-cpp/src/UserStore_types.h (+327/-0)
3rdParty/libthrift/.git/HEAD (+1/-0)
3rdParty/libthrift/.git/config (+11/-0)
3rdParty/libthrift/.git/description (+1/-0)
3rdParty/libthrift/.git/hooks/applypatch-msg.sample (+15/-0)
3rdParty/libthrift/.git/hooks/commit-msg.sample (+24/-0)
3rdParty/libthrift/.git/hooks/post-update.sample (+8/-0)
3rdParty/libthrift/.git/hooks/pre-applypatch.sample (+14/-0)
3rdParty/libthrift/.git/hooks/pre-commit.sample (+50/-0)
3rdParty/libthrift/.git/hooks/pre-push.sample (+53/-0)
3rdParty/libthrift/.git/hooks/pre-rebase.sample (+169/-0)
3rdParty/libthrift/.git/hooks/prepare-commit-msg.sample (+36/-0)
3rdParty/libthrift/.git/hooks/update.sample (+128/-0)
3rdParty/libthrift/.git/info/exclude (+6/-0)
3rdParty/libthrift/.git/logs/HEAD (+1/-0)
3rdParty/libthrift/.git/logs/refs/heads/master (+1/-0)
3rdParty/libthrift/.git/logs/refs/remotes/origin/HEAD (+1/-0)
3rdParty/libthrift/.git/packed-refs (+3/-0)
3rdParty/libthrift/.git/refs/heads/master (+1/-0)
3rdParty/libthrift/.git/refs/remotes/origin/HEAD (+1/-0)
3rdParty/libthrift/.gitignore (+2/-0)
3rdParty/libthrift/README (+77/-0)
3rdParty/libthrift/TApplicationException.cpp (+80/-0)
3rdParty/libthrift/TApplicationException.h (+106/-0)
3rdParty/libthrift/TLogging.h (+199/-0)
3rdParty/libthrift/TProcessor.h (+233/-0)
3rdParty/libthrift/TReflectionLocal.h (+96/-0)
3rdParty/libthrift/Thrift.cpp (+93/-0)
3rdParty/libthrift/Thrift.h (+210/-0)
3rdParty/libthrift/VirtualProfiling.cpp (+455/-0)
3rdParty/libthrift/async/TAsyncBufferProcessor.h (+46/-0)
3rdParty/libthrift/async/TAsyncChannel.cpp (+34/-0)
3rdParty/libthrift/async/TAsyncChannel.h (+66/-0)
3rdParty/libthrift/async/TAsyncProcessor.h (+97/-0)
3rdParty/libthrift/async/TAsyncProtocolProcessor.cpp (+51/-0)
3rdParty/libthrift/async/TAsyncProtocolProcessor.h (+57/-0)
3rdParty/libthrift/async/TEvhttpClientChannel.cpp (+162/-0)
3rdParty/libthrift/async/TEvhttpClientChannel.h (+76/-0)
3rdParty/libthrift/async/TEvhttpServer.cpp (+169/-0)
3rdParty/libthrift/async/TEvhttpServer.h (+71/-0)
3rdParty/libthrift/concurrency/BoostMonitor.cpp (+198/-0)
3rdParty/libthrift/concurrency/BoostMutex.cpp (+59/-0)
3rdParty/libthrift/concurrency/BoostThreadFactory.cpp (+182/-0)
3rdParty/libthrift/concurrency/BoostThreadFactory.h (+75/-0)
3rdParty/libthrift/concurrency/Exception.h (+64/-0)
3rdParty/libthrift/concurrency/FunctionRunner.h (+102/-0)
3rdParty/libthrift/concurrency/Monitor.cpp (+208/-0)
3rdParty/libthrift/concurrency/Monitor.h (+124/-0)
3rdParty/libthrift/concurrency/Mutex.cpp (+363/-0)
3rdParty/libthrift/concurrency/Mutex.h (+178/-0)
3rdParty/libthrift/concurrency/PlatformThreadFactory.h (+39/-0)
3rdParty/libthrift/concurrency/PosixThreadFactory.cpp (+342/-0)
3rdParty/libthrift/concurrency/PosixThreadFactory.h (+130/-0)
3rdParty/libthrift/concurrency/Thread.h (+146/-0)
3rdParty/libthrift/concurrency/ThreadManager.cpp (+585/-0)
3rdParty/libthrift/concurrency/ThreadManager.h (+202/-0)
3rdParty/libthrift/concurrency/TimerManager.cpp (+284/-0)
3rdParty/libthrift/concurrency/TimerManager.h (+122/-0)
3rdParty/libthrift/concurrency/Util.cpp (+54/-0)
3rdParty/libthrift/concurrency/Util.h (+150/-0)
3rdParty/libthrift/config.h (+20/-0)
3rdParty/libthrift/jni/Android.mk (+98/-0)
3rdParty/libthrift/jni/Application.mk (+7/-0)
3rdParty/libthrift/jni/shared.mk (+17/-0)
3rdParty/libthrift/jni/static.mk (+17/-0)
3rdParty/libthrift/libthrift.pro (+43/-0)
3rdParty/libthrift/processor/PeekProcessor.cpp (+127/-0)
3rdParty/libthrift/processor/PeekProcessor.h (+78/-0)
3rdParty/libthrift/processor/StatsProcessor.h (+266/-0)
3rdParty/libthrift/protocol/TBase64Utils.cpp (+79/-0)
3rdParty/libthrift/protocol/TBase64Utils.h (+42/-0)
3rdParty/libthrift/protocol/TBinaryProtocol.h (+279/-0)
3rdParty/libthrift/protocol/TBinaryProtocol.tcc (+460/-0)
3rdParty/libthrift/protocol/TCompactProtocol.h (+289/-0)
3rdParty/libthrift/protocol/TCompactProtocol.tcc (+811/-0)
3rdParty/libthrift/protocol/TDebugProtocol.cpp (+348/-0)
3rdParty/libthrift/protocol/TDebugProtocol.h (+227/-0)
3rdParty/libthrift/protocol/TDenseProtocol.cpp (+766/-0)
3rdParty/libthrift/protocol/TDenseProtocol.h (+254/-0)
3rdParty/libthrift/protocol/TJSONProtocol.cpp (+1005/-0)
3rdParty/libthrift/protocol/TJSONProtocol.h (+339/-0)
3rdParty/libthrift/protocol/TProtocol.h (+694/-0)
3rdParty/libthrift/protocol/TProtocolException.h (+104/-0)
3rdParty/libthrift/protocol/TProtocolTap.h (+188/-0)
3rdParty/libthrift/protocol/TVirtualProtocol.h (+564/-0)
3rdParty/libthrift/server/TNonblockingServer.cpp (+1261/-0)
3rdParty/libthrift/server/TNonblockingServer.h (+762/-0)
3rdParty/libthrift/server/TServer.cpp (+49/-0)
3rdParty/libthrift/server/TServer.h (+315/-0)
3rdParty/libthrift/server/TSimpleServer.cpp (+153/-0)
3rdParty/libthrift/server/TSimpleServer.h (+102/-0)
3rdParty/libthrift/server/TThreadPoolServer.cpp (+205/-0)
3rdParty/libthrift/server/TThreadPoolServer.h (+126/-0)
3rdParty/libthrift/server/TThreadedServer.cpp (+241/-0)
3rdParty/libthrift/server/TThreadedServer.h (+145/-0)
3rdParty/libthrift/transport/TBufferTransports.cpp (+387/-0)
3rdParty/libthrift/transport/TBufferTransports.h (+733/-0)
3rdParty/libthrift/transport/TFDTransport.cpp (+92/-0)
3rdParty/libthrift/transport/TFDTransport.h (+75/-0)
3rdParty/libthrift/transport/TFileTransport.cpp (+1122/-0)
3rdParty/libthrift/transport/TFileTransport.h (+478/-0)
3rdParty/libthrift/transport/THttpClient.cpp (+114/-0)
3rdParty/libthrift/transport/THttpClient.h (+49/-0)
3rdParty/libthrift/transport/THttpServer.cpp (+122/-0)
3rdParty/libthrift/transport/THttpServer.h (+64/-0)
3rdParty/libthrift/transport/THttpTransport.cpp (+252/-0)
3rdParty/libthrift/transport/THttpTransport.h (+107/-0)
3rdParty/libthrift/transport/TSSLServerSocket.cpp (+47/-0)
3rdParty/libthrift/transport/TSSLServerSocket.h (+59/-0)
3rdParty/libthrift/transport/TSSLSocket.cpp (+670/-0)
3rdParty/libthrift/transport/TSSLSocket.h (+315/-0)
3rdParty/libthrift/transport/TServerSocket.cpp (+489/-0)
3rdParty/libthrift/transport/TServerSocket.h (+82/-0)
3rdParty/libthrift/transport/TServerTransport.h (+92/-0)
3rdParty/libthrift/transport/TShortReadTransport.h (+97/-0)
3rdParty/libthrift/transport/TSimpleFileTransport.cpp (+68/-0)
3rdParty/libthrift/transport/TSimpleFileTransport.h (+41/-0)
3rdParty/libthrift/transport/TSocket.cpp (+823/-0)
3rdParty/libthrift/transport/TSocket.h (+308/-0)
3rdParty/libthrift/transport/TSocketPool.cpp (+256/-0)
3rdParty/libthrift/transport/TSocketPool.h (+196/-0)
3rdParty/libthrift/transport/TTransport.h (+270/-0)
3rdParty/libthrift/transport/TTransportException.cpp (+34/-0)
3rdParty/libthrift/transport/TTransportException.h (+115/-0)
3rdParty/libthrift/transport/TTransportUtils.cpp (+178/-0)
3rdParty/libthrift/transport/TTransportUtils.h (+330/-0)
3rdParty/libthrift/transport/TVirtualTransport.h (+146/-0)
3rdParty/libthrift/transport/TZlibTransport.cpp (+400/-0)
3rdParty/libthrift/transport/TZlibTransport.h (+276/-0)
components/RemindersModel.qml (+0/-17)
debian/control (+5/-1)
debian/reminders-app.install (+2/-3)
deployment.pri (+25/-0)
manifest.json (+2/-1)
reminders-app (+1/-1)
reminders-app.pro (+8/-0)
reminders-app.qmlproject (+0/-46)
src/app/app.pro (+20/-0)
src/app/main.cpp (+54/-0)
src/app/qml/reminders-app.qml (+12/-4)
src/app/qml/ui/AccountSelectorPage.qml (+50/-0)
src/app/qml/ui/NotePage.qml (+15/-0)
src/app/qml/ui/NotebooksPage.qml (+23/-4)
src/app/qml/ui/NotesPage.qml (+27/-4)
src/app/qml/ui/RemindersPage.qml (+2/-2)
src/plugin/Evernote/Evernote.pro (+37/-0)
src/plugin/Evernote/evernoteplugin.cpp (+40/-0)
src/plugin/Evernote/evernoteplugin.h (+34/-0)
src/plugin/Evernote/notebooks.cpp (+58/-0)
src/plugin/Evernote/notebooks.h (+33/-0)
src/plugin/Evernote/notes.cpp (+103/-0)
src/plugin/Evernote/notes.h (+42/-0)
src/plugin/Evernote/notesstore.cpp (+139/-0)
src/plugin/Evernote/notesstore.h (+47/-0)
src/plugin/Evernote/qmldir (+2/-0)
src/plugin/Evernote/userstore.cpp (+119/-0)
src/plugin/Evernote/userstore.h (+26/-0)
src/plugin/plugin.pro (+2/-0)
src/src.pro (+2/-0)
tests/autopilot/reminders_app/__init__.py (+1/-1)
tests/autopilot/reminders_app/main/test_main.py (+5/-15)
To merge this branch: bzr merge lp:~mzanetti/reminders-app/integrate-plugin
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+196210@code.launchpad.net

Commit message

add evernote-sdk, libthrift and a qml plugin

Description of the change

This adds:

* evernote-sdk-cpp
* libthrift (required by evernote-sdk-cpp)
* a Evernote QML plugin

Additionally it moves the existing QML files around a bit to fit better with the 3rdParty + Plugin directories.

Given the fact that we need to compile C++ now, the qmlproject file is not of much use any more, so I've dropped it, but created a ready to go .pro file for you. We can change this later to cmake if that's wanted. But for now this .pro file should get us going.

You should be able to open "reminders-app.pro" in QtCreator and just click on build. You might need to install libboost-dev if you haven't yet. The libraries are linked statically and there is a minimalistic self-made qmlscene which loads the plugin path automatically. So nothing special to do. Just open and click on "play". Note that the main.cpp is not really required as we can still run everything in qmlscene, but I've added it for convenience as with qmlscene we'd need to add the -I and plugin path. We do not need to ship this in the final package if you prefer using qmlscene for whatever reason.

I've also updated the existing UI code a little bit to make use of the stuff that's available in the plugin to show you how to use it. Along with that I dropped the components dir as the fake model in there is now replaced by real functionality (well, I'll add support for reminders soon, so far only Notes and Notebooks).

What this does NOT:
* There is no write access yet. All we can do so far is reading stuff.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Note for reviewers: in addition to libboost-dev, you'll need to install libssl-dev too to test the code.

Revision history for this message
David Planella (dpm) wrote :

Excellent work, I could get it to fetch and render my notes. There are only a couple of minor things I noticed:

1) There is a typo in the reminders-app.qml file:

file:///tmp/build-reminders-app-Desktop-Debug/src/app/qml/reminders-app.qml:61:23: Reminders is not a type
                     page: Reminders {
                           ^
That needs to be RemindersPage

2) This is simply a suggestion, but could we use something more generic to name the 3rdParty folder and project file? That is, could we use 'lib' instead of '3rdParty'?

review: Needs Fixing
9. By Michael Zanetti

fix reminders page renaming

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> 1) There is a typo in the reminders-app.qml file:

fixed.

> 2) This is simply a suggestion, but could we use something more generic to
> name the 3rdParty folder and project file? That is, could we use 'lib' instead
> of '3rdParty'?

Usually "lib" is used for libs that are part of this source code, i.e. if we would write it our own. 3rdParty indicates that this is really just imported without major modifications. So in my opinion keeping it to 3rdParty would be better. But if you guys agree this should be renamed to "lib" I can sure do that.

10. By Michael Zanetti

drop unneeded reference to example code

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
11. By Michael Zanetti

fix packaging

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
12. By Michael Zanetti

"fix" autopilot tests

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
13. By Michael Zanetti

add fake check target to make jenkins happy

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
14. By Michael Zanetti

more fixes for autopilot

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
15. By Michael Zanetti

fix target name

16. By Michael Zanetti

fix architecture for packages

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Not sure why Jenkins has not picked this up or whether it is a problem with my setup, but trying to build the package fails with the following errors:

E: reminders-app source: not-binnmuable-all-depends-any reminders-app-autopilot -> reminders-app
E: reminders-app: missing-dependency-on-libc needed by usr/lib/x86_64-linux-gnu/qt5/qml/Evernote/libevernoteplugin.so

17. By Michael Zanetti

add run_on_ubuntu_touch.sh script and fix .desktop file for click packaging

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Not sure why Jenkins has not picked this up or whether it is a problem with my
> setup, but trying to build the package fails with the following errors:
>
> E: reminders-app source: not-binnmuable-all-depends-any reminders-app-
> autopilot -> reminders-app
> E: reminders-app: missing-dependency-on-libc needed by usr/lib/x86_64-linux-
> gnu/qt5/qml/Evernote/libevernoteplugin.so

Hmm... I don't see this here and tbh I've no clue what is wrong. How do you build the package?

18. By Michael Zanetti

fix apparmor policy to allow accessing accounts

Revision history for this message
David Planella (dpm) wrote :

I'm building the package on 13.10 from the root of the source tree with:

debuild -us -uc

On Sat, Nov 23, 2013 at 12:12 AM, Michael Zanetti <
<email address hidden>> wrote:

> > Not sure why Jenkins has not picked this up or whether it is a problem
> with my
> > setup, but trying to build the package fails with the following errors:
> >
> > E: reminders-app source: not-binnmuable-all-depends-any reminders-app-
> > autopilot -> reminders-app
> > E: reminders-app: missing-dependency-on-libc needed by
> usr/lib/x86_64-linux-
> > gnu/qt5/qml/Evernote/libevernoteplugin.so
>
> Hmm... I don't see this here and tbh I've no clue what is wrong. How do
> you build the package?
> --
>
> https://code.launchpad.net/~mzanetti/reminders-app/integrate-plugin/+merge/196210
> You are reviewing the proposed merge of
> lp:~mzanetti/reminders-app/integrate-plugin into lp:reminders-app.
>

Revision history for this message
David Planella (dpm) wrote :

It seems that the packages build regardless of the error, and since Jenkins is happy with it and the branch works as expected, I'll just go ahead and approve it.

One thing I've noticed while using the app is that it sometimes seems to lose the connection with Evernote, and it stops fetching Notes or Notebooks (this can be easily seen in the Qt Creator console with the error messages).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2013-10-23 11:02:37 +0000
+++ .bzrignore 2013-11-22 21:43:19 +0000
@@ -1,1 +1,2 @@
1reminders-app.qmlproject.user1reminders-app.qmlproject.user
2reminders-app.pro.user
23
=== added directory '3rdParty'
=== added file '3rdParty/3rdParty.pro'
--- 3rdParty/3rdParty.pro 1970-01-01 00:00:00 +0000
+++ 3rdParty/3rdParty.pro 2013-11-22 21:43:19 +0000
@@ -0,0 +1,4 @@
1TEMPLATE = subdirs
2SUBDIRS = libthrift evernote-sdk-cpp
3
4evernote-sdk-cpp.depends = libthrift
05
=== added directory '3rdParty/evernote-sdk-cpp'
=== added directory '3rdParty/evernote-sdk-cpp/.git'
=== added file '3rdParty/evernote-sdk-cpp/.git/HEAD'
--- 3rdParty/evernote-sdk-cpp/.git/HEAD 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/HEAD 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
1ref: refs/heads/master
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/branches'
=== added file '3rdParty/evernote-sdk-cpp/.git/config'
--- 3rdParty/evernote-sdk-cpp/.git/config 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/config 2013-11-22 21:43:19 +0000
@@ -0,0 +1,11 @@
1[core]
2 repositoryformatversion = 0
3 filemode = true
4 bare = false
5 logallrefupdates = true
6[remote "origin"]
7 url = https://github.com/evernote/evernote-sdk-cpp.git
8 fetch = +refs/heads/*:refs/remotes/origin/*
9[branch "master"]
10 remote = origin
11 merge = refs/heads/master
012
=== added file '3rdParty/evernote-sdk-cpp/.git/description'
--- 3rdParty/evernote-sdk-cpp/.git/description 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/description 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
1Unnamed repository; edit this file 'description' to name the repository.
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/hooks'
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/applypatch-msg.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/applypatch-msg.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/applypatch-msg.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,15 @@
1#!/bin/sh
2#
3# An example hook script to check the commit log message taken by
4# applypatch from an e-mail message.
5#
6# The hook should exit with non-zero status after issuing an
7# appropriate message if it wants to stop the commit. The hook is
8# allowed to edit the commit message file.
9#
10# To enable this hook, rename this file to "applypatch-msg".
11
12. git-sh-setup
13test -x "$GIT_DIR/hooks/commit-msg" &&
14 exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
15:
016
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/commit-msg.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/commit-msg.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/commit-msg.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,24 @@
1#!/bin/sh
2#
3# An example hook script to check the commit log message.
4# Called by "git commit" with one argument, the name of the file
5# that has the commit message. The hook should exit with non-zero
6# status after issuing an appropriate message if it wants to stop the
7# commit. The hook is allowed to edit the commit message file.
8#
9# To enable this hook, rename this file to "commit-msg".
10
11# Uncomment the below to add a Signed-off-by line to the message.
12# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13# hook is more suited to it.
14#
15# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17
18# This example catches duplicate Signed-off-by lines.
19
20test "" = "$(grep '^Signed-off-by: ' "$1" |
21 sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22 echo >&2 Duplicate Signed-off-by lines.
23 exit 1
24}
025
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/post-update.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/post-update.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/post-update.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh
2#
3# An example hook script to prepare a packed repository for use over
4# dumb transports.
5#
6# To enable this hook, rename this file to "post-update".
7
8exec git update-server-info
09
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/pre-applypatch.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/pre-applypatch.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/pre-applypatch.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,14 @@
1#!/bin/sh
2#
3# An example hook script to verify what is about to be committed
4# by applypatch from an e-mail message.
5#
6# The hook should exit with non-zero status after issuing an
7# appropriate message if it wants to stop the commit.
8#
9# To enable this hook, rename this file to "pre-applypatch".
10
11. git-sh-setup
12test -x "$GIT_DIR/hooks/pre-commit" &&
13 exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
14:
015
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/pre-commit.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/pre-commit.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/pre-commit.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,50 @@
1#!/bin/sh
2#
3# An example hook script to verify what is about to be committed.
4# Called by "git commit" with no arguments. The hook should
5# exit with non-zero status after issuing an appropriate message if
6# it wants to stop the commit.
7#
8# To enable this hook, rename this file to "pre-commit".
9
10if git rev-parse --verify HEAD >/dev/null 2>&1
11then
12 against=HEAD
13else
14 # Initial commit: diff against an empty tree object
15 against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
16fi
17
18# If you want to allow non-ascii filenames set this variable to true.
19allownonascii=$(git config hooks.allownonascii)
20
21# Redirect output to stderr.
22exec 1>&2
23
24# Cross platform projects tend to avoid non-ascii filenames; prevent
25# them from being added to the repository. We exploit the fact that the
26# printable range starts at the space character and ends with tilde.
27if [ "$allownonascii" != "true" ] &&
28 # Note that the use of brackets around a tr range is ok here, (it's
29 # even required, for portability to Solaris 10's /usr/bin/tr), since
30 # the square bracket bytes happen to fall in the designated range.
31 test $(git diff --cached --name-only --diff-filter=A -z $against |
32 LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
33then
34 echo "Error: Attempt to add a non-ascii file name."
35 echo
36 echo "This can cause problems if you want to work"
37 echo "with people on other platforms."
38 echo
39 echo "To be portable it is advisable to rename the file ..."
40 echo
41 echo "If you know what you are doing you can disable this"
42 echo "check using:"
43 echo
44 echo " git config hooks.allownonascii true"
45 echo
46 exit 1
47fi
48
49# If there are whitespace errors, print the offending file names and fail.
50exec git diff-index --check --cached $against --
051
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/pre-push.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/pre-push.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/pre-push.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,53 @@
1#!/bin/sh
2
3# An example hook script to verify what is about to be pushed. Called by "git
4# push" after it has checked the remote status, but before anything has been
5# pushed. If this script exits with a non-zero status nothing will be pushed.
6#
7# This hook is called with the following parameters:
8#
9# $1 -- Name of the remote to which the push is being done
10# $2 -- URL to which the push is being done
11#
12# If pushing without using a named remote those arguments will be equal.
13#
14# Information about the commits which are being pushed is supplied as lines to
15# the standard input in the form:
16#
17# <local ref> <local sha1> <remote ref> <remote sha1>
18#
19# This sample shows how to prevent push of commits where the log message starts
20# with "WIP" (work in progress).
21
22remote="$1"
23url="$2"
24
25z40=0000000000000000000000000000000000000000
26
27IFS=' '
28while read local_ref local_sha remote_ref remote_sha
29do
30 if [ "$local_sha" = $z40 ]
31 then
32 # Handle delete
33 else
34 if [ "$remote_sha" = $z40 ]
35 then
36 # New branch, examine all commits
37 range="$local_sha"
38 else
39 # Update to existing branch, examine new commits
40 range="$remote_sha..$local_sha"
41 fi
42
43 # Check for WIP commit
44 commit=`git rev-list -n 1 --grep '^WIP' "$range"`
45 if [ -n "$commit" ]
46 then
47 echo "Found WIP commit in $local_ref, not pushing"
48 exit 1
49 fi
50 fi
51done
52
53exit 0
054
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/pre-rebase.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/pre-rebase.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/pre-rebase.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,169 @@
1#!/bin/sh
2#
3# Copyright (c) 2006, 2008 Junio C Hamano
4#
5# The "pre-rebase" hook is run just before "git rebase" starts doing
6# its job, and can prevent the command from running by exiting with
7# non-zero status.
8#
9# The hook is called with the following parameters:
10#
11# $1 -- the upstream the series was forked from.
12# $2 -- the branch being rebased (or empty when rebasing the current branch).
13#
14# This sample shows how to prevent topic branches that are already
15# merged to 'next' branch from getting rebased, because allowing it
16# would result in rebasing already published history.
17
18publish=next
19basebranch="$1"
20if test "$#" = 2
21then
22 topic="refs/heads/$2"
23else
24 topic=`git symbolic-ref HEAD` ||
25 exit 0 ;# we do not interrupt rebasing detached HEAD
26fi
27
28case "$topic" in
29refs/heads/??/*)
30 ;;
31*)
32 exit 0 ;# we do not interrupt others.
33 ;;
34esac
35
36# Now we are dealing with a topic branch being rebased
37# on top of master. Is it OK to rebase it?
38
39# Does the topic really exist?
40git show-ref -q "$topic" || {
41 echo >&2 "No such branch $topic"
42 exit 1
43}
44
45# Is topic fully merged to master?
46not_in_master=`git rev-list --pretty=oneline ^master "$topic"`
47if test -z "$not_in_master"
48then
49 echo >&2 "$topic is fully merged to master; better remove it."
50 exit 1 ;# we could allow it, but there is no point.
51fi
52
53# Is topic ever merged to next? If so you should not be rebasing it.
54only_next_1=`git rev-list ^master "^$topic" ${publish} | sort`
55only_next_2=`git rev-list ^master ${publish} | sort`
56if test "$only_next_1" = "$only_next_2"
57then
58 not_in_topic=`git rev-list "^$topic" master`
59 if test -z "$not_in_topic"
60 then
61 echo >&2 "$topic is already up-to-date with master"
62 exit 1 ;# we could allow it, but there is no point.
63 else
64 exit 0
65 fi
66else
67 not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
68 /usr/bin/perl -e '
69 my $topic = $ARGV[0];
70 my $msg = "* $topic has commits already merged to public branch:\n";
71 my (%not_in_next) = map {
72 /^([0-9a-f]+) /;
73 ($1 => 1);
74 } split(/\n/, $ARGV[1]);
75 for my $elem (map {
76 /^([0-9a-f]+) (.*)$/;
77 [$1 => $2];
78 } split(/\n/, $ARGV[2])) {
79 if (!exists $not_in_next{$elem->[0]}) {
80 if ($msg) {
81 print STDERR $msg;
82 undef $msg;
83 }
84 print STDERR " $elem->[1]\n";
85 }
86 }
87 ' "$topic" "$not_in_next" "$not_in_master"
88 exit 1
89fi
90
91<<\DOC_END
92
93This sample hook safeguards topic branches that have been
94published from being rewound.
95
96The workflow assumed here is:
97
98 * Once a topic branch forks from "master", "master" is never
99 merged into it again (either directly or indirectly).
100
101 * Once a topic branch is fully cooked and merged into "master",
102 it is deleted. If you need to build on top of it to correct
103 earlier mistakes, a new topic branch is created by forking at
104 the tip of the "master". This is not strictly necessary, but
105 it makes it easier to keep your history simple.
106
107 * Whenever you need to test or publish your changes to topic
108 branches, merge them into "next" branch.
109
110The script, being an example, hardcodes the publish branch name
111to be "next", but it is trivial to make it configurable via
112$GIT_DIR/config mechanism.
113
114With this workflow, you would want to know:
115
116(1) ... if a topic branch has ever been merged to "next". Young
117 topic branches can have stupid mistakes you would rather
118 clean up before publishing, and things that have not been
119 merged into other branches can be easily rebased without
120 affecting other people. But once it is published, you would
121 not want to rewind it.
122
123(2) ... if a topic branch has been fully merged to "master".
124 Then you can delete it. More importantly, you should not
125 build on top of it -- other people may already want to
126 change things related to the topic as patches against your
127 "master", so if you need further changes, it is better to
128 fork the topic (perhaps with the same name) afresh from the
129 tip of "master".
130
131Let's look at this example:
132
133 o---o---o---o---o---o---o---o---o---o "next"
134 / / / /
135 / a---a---b A / /
136 / / / /
137 / / c---c---c---c B /
138 / / / \ /
139 / / / b---b C \ /
140 / / / / \ /
141 ---o---o---o---o---o---o---o---o---o---o---o "master"
142
143
144A, B and C are topic branches.
145
146 * A has one fix since it was merged up to "next".
147
148 * B has finished. It has been fully merged up to "master" and "next",
149 and is ready to be deleted.
150
151 * C has not merged to "next" at all.
152
153We would want to allow C to be rebased, refuse A, and encourage
154B to be deleted.
155
156To compute (1):
157
158 git rev-list ^master ^topic next
159 git rev-list ^master next
160
161 if these match, topic has not merged in next at all.
162
163To compute (2):
164
165 git rev-list master..topic
166
167 if this is empty, it is fully merged to "master".
168
169DOC_END
0170
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/prepare-commit-msg.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/prepare-commit-msg.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/prepare-commit-msg.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,36 @@
1#!/bin/sh
2#
3# An example hook script to prepare the commit log message.
4# Called by "git commit" with the name of the file that has the
5# commit message, followed by the description of the commit
6# message's source. The hook's purpose is to edit the commit
7# message file. If the hook fails with a non-zero status,
8# the commit is aborted.
9#
10# To enable this hook, rename this file to "prepare-commit-msg".
11
12# This hook includes three examples. The first comments out the
13# "Conflicts:" part of a merge commit.
14#
15# The second includes the output of "git diff --name-status -r"
16# into the message, just before the "git status" output. It is
17# commented because it doesn't cope with --amend or with squashed
18# commits.
19#
20# The third example adds a Signed-off-by line to the message, that can
21# still be edited. This is rarely a good idea.
22
23case "$2,$3" in
24 merge,)
25 /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;;
26
27# ,|template,)
28# /usr/bin/perl -i.bak -pe '
29# print "\n" . `git diff --cached --name-status -r`
30# if /^#/ && $first++ == 0' "$1" ;;
31
32 *) ;;
33esac
34
35# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
36# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
037
=== added file '3rdParty/evernote-sdk-cpp/.git/hooks/update.sample'
--- 3rdParty/evernote-sdk-cpp/.git/hooks/update.sample 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/hooks/update.sample 2013-11-22 21:43:19 +0000
@@ -0,0 +1,128 @@
1#!/bin/sh
2#
3# An example hook script to blocks unannotated tags from entering.
4# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
5#
6# To enable this hook, rename this file to "update".
7#
8# Config
9# ------
10# hooks.allowunannotated
11# This boolean sets whether unannotated tags will be allowed into the
12# repository. By default they won't be.
13# hooks.allowdeletetag
14# This boolean sets whether deleting tags will be allowed in the
15# repository. By default they won't be.
16# hooks.allowmodifytag
17# This boolean sets whether a tag may be modified after creation. By default
18# it won't be.
19# hooks.allowdeletebranch
20# This boolean sets whether deleting branches will be allowed in the
21# repository. By default they won't be.
22# hooks.denycreatebranch
23# This boolean sets whether remotely creating branches will be denied
24# in the repository. By default this is allowed.
25#
26
27# --- Command line
28refname="$1"
29oldrev="$2"
30newrev="$3"
31
32# --- Safety check
33if [ -z "$GIT_DIR" ]; then
34 echo "Don't run this script from the command line." >&2
35 echo " (if you want, you could supply GIT_DIR then run" >&2
36 echo " $0 <ref> <oldrev> <newrev>)" >&2
37 exit 1
38fi
39
40if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
41 echo "usage: $0 <ref> <oldrev> <newrev>" >&2
42 exit 1
43fi
44
45# --- Config
46allowunannotated=$(git config --bool hooks.allowunannotated)
47allowdeletebranch=$(git config --bool hooks.allowdeletebranch)
48denycreatebranch=$(git config --bool hooks.denycreatebranch)
49allowdeletetag=$(git config --bool hooks.allowdeletetag)
50allowmodifytag=$(git config --bool hooks.allowmodifytag)
51
52# check for no description
53projectdesc=$(sed -e '1q' "$GIT_DIR/description")
54case "$projectdesc" in
55"Unnamed repository"* | "")
56 echo "*** Project description file hasn't been set" >&2
57 exit 1
58 ;;
59esac
60
61# --- Check types
62# if $newrev is 0000...0000, it's a commit to delete a ref.
63zero="0000000000000000000000000000000000000000"
64if [ "$newrev" = "$zero" ]; then
65 newrev_type=delete
66else
67 newrev_type=$(git cat-file -t $newrev)
68fi
69
70case "$refname","$newrev_type" in
71 refs/tags/*,commit)
72 # un-annotated tag
73 short_refname=${refname##refs/tags/}
74 if [ "$allowunannotated" != "true" ]; then
75 echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
76 echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
77 exit 1
78 fi
79 ;;
80 refs/tags/*,delete)
81 # delete tag
82 if [ "$allowdeletetag" != "true" ]; then
83 echo "*** Deleting a tag is not allowed in this repository" >&2
84 exit 1
85 fi
86 ;;
87 refs/tags/*,tag)
88 # annotated tag
89 if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
90 then
91 echo "*** Tag '$refname' already exists." >&2
92 echo "*** Modifying a tag is not allowed in this repository." >&2
93 exit 1
94 fi
95 ;;
96 refs/heads/*,commit)
97 # branch
98 if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
99 echo "*** Creating a branch is not allowed in this repository" >&2
100 exit 1
101 fi
102 ;;
103 refs/heads/*,delete)
104 # delete branch
105 if [ "$allowdeletebranch" != "true" ]; then
106 echo "*** Deleting a branch is not allowed in this repository" >&2
107 exit 1
108 fi
109 ;;
110 refs/remotes/*,commit)
111 # tracking branch
112 ;;
113 refs/remotes/*,delete)
114 # delete tracking branch
115 if [ "$allowdeletebranch" != "true" ]; then
116 echo "*** Deleting a tracking branch is not allowed in this repository" >&2
117 exit 1
118 fi
119 ;;
120 *)
121 # Anything else (is there anything else?)
122 echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
123 exit 1
124 ;;
125esac
126
127# --- Finished
128exit 0
0129
=== added file '3rdParty/evernote-sdk-cpp/.git/index'
1Binary files 3rdParty/evernote-sdk-cpp/.git/index 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/index 2013-11-22 21:43:19 +0000 differ130Binary files 3rdParty/evernote-sdk-cpp/.git/index 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/index 2013-11-22 21:43:19 +0000 differ
=== added directory '3rdParty/evernote-sdk-cpp/.git/info'
=== added file '3rdParty/evernote-sdk-cpp/.git/info/exclude'
--- 3rdParty/evernote-sdk-cpp/.git/info/exclude 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/info/exclude 2013-11-22 21:43:19 +0000
@@ -0,0 +1,6 @@
1# git ls-files --others --exclude-from=.git/info/exclude
2# Lines that start with '#' are comments.
3# For a project mostly in C, the following would be a good set of
4# exclude patterns (uncomment them if you want to use them):
5# *.[oa]
6# *~
07
=== added directory '3rdParty/evernote-sdk-cpp/.git/logs'
=== added file '3rdParty/evernote-sdk-cpp/.git/logs/HEAD'
--- 3rdParty/evernote-sdk-cpp/.git/logs/HEAD 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/logs/HEAD 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
10000000000000000000000000000000000000000 8ff7baba6c6fb73fe8cc14ef51b321890f09bc40 Michael Zanetti <michael_zanetti@gmx.net> 1384442360 +0100 clone: from https://github.com/evernote/evernote-sdk-cpp.git
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/logs/refs'
=== added directory '3rdParty/evernote-sdk-cpp/.git/logs/refs/heads'
=== added file '3rdParty/evernote-sdk-cpp/.git/logs/refs/heads/master'
--- 3rdParty/evernote-sdk-cpp/.git/logs/refs/heads/master 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/logs/refs/heads/master 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
10000000000000000000000000000000000000000 8ff7baba6c6fb73fe8cc14ef51b321890f09bc40 Michael Zanetti <michael_zanetti@gmx.net> 1384442360 +0100 clone: from https://github.com/evernote/evernote-sdk-cpp.git
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes'
=== added directory '3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes/origin'
=== added file '3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes/origin/HEAD'
--- 3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/logs/refs/remotes/origin/HEAD 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
10000000000000000000000000000000000000000 8ff7baba6c6fb73fe8cc14ef51b321890f09bc40 Michael Zanetti <michael_zanetti@gmx.net> 1384442360 +0100 clone: from https://github.com/evernote/evernote-sdk-cpp.git
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/objects'
=== added directory '3rdParty/evernote-sdk-cpp/.git/objects/e6'
=== added file '3rdParty/evernote-sdk-cpp/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391'
1Binary files 3rdParty/evernote-sdk-cpp/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 2013-11-22 21:43:19 +0000 differ3Binary files 3rdParty/evernote-sdk-cpp/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 2013-11-22 21:43:19 +0000 differ
=== added directory '3rdParty/evernote-sdk-cpp/.git/objects/info'
=== added directory '3rdParty/evernote-sdk-cpp/.git/objects/pack'
=== added file '3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.idx'
2Binary files 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.idx 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.idx 2013-11-22 21:43:19 +0000 differ4Binary files 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.idx 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.idx 2013-11-22 21:43:19 +0000 differ
=== added file '3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.pack'
3Binary files 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.pack 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.pack 2013-11-22 21:43:19 +0000 differ5Binary files 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.pack 1970-01-01 00:00:00 +0000 and 3rdParty/evernote-sdk-cpp/.git/objects/pack/pack-67281df39073784444642b09601e438f46d74a25.pack 2013-11-22 21:43:19 +0000 differ
=== added file '3rdParty/evernote-sdk-cpp/.git/packed-refs'
--- 3rdParty/evernote-sdk-cpp/.git/packed-refs 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/packed-refs 2013-11-22 21:43:19 +0000
@@ -0,0 +1,3 @@
1# pack-refs with: peeled fully-peeled
28ff7baba6c6fb73fe8cc14ef51b321890f09bc40 refs/remotes/origin/dev
38ff7baba6c6fb73fe8cc14ef51b321890f09bc40 refs/remotes/origin/master
04
=== added directory '3rdParty/evernote-sdk-cpp/.git/refs'
=== added directory '3rdParty/evernote-sdk-cpp/.git/refs/heads'
=== added file '3rdParty/evernote-sdk-cpp/.git/refs/heads/master'
--- 3rdParty/evernote-sdk-cpp/.git/refs/heads/master 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/refs/heads/master 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
18ff7baba6c6fb73fe8cc14ef51b321890f09bc40
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/refs/remotes'
=== added directory '3rdParty/evernote-sdk-cpp/.git/refs/remotes/origin'
=== added file '3rdParty/evernote-sdk-cpp/.git/refs/remotes/origin/HEAD'
--- 3rdParty/evernote-sdk-cpp/.git/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/.git/refs/remotes/origin/HEAD 2013-11-22 21:43:19 +0000
@@ -0,0 +1,1 @@
1ref: refs/remotes/origin/master
02
=== added directory '3rdParty/evernote-sdk-cpp/.git/refs/tags'
=== added file '3rdParty/evernote-sdk-cpp/APACHE-LICENSE-2.0.txt'
--- 3rdParty/evernote-sdk-cpp/APACHE-LICENSE-2.0.txt 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/APACHE-LICENSE-2.0.txt 2013-11-22 21:43:19 +0000
@@ -0,0 +1,202 @@
1
2 Apache License
3 Version 2.0, January 2004
4 http://www.apache.org/licenses/
5
6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
8 1. Definitions.
9
10 "License" shall mean the terms and conditions for use, reproduction,
11 and distribution as defined by Sections 1 through 9 of this document.
12
13 "Licensor" shall mean the copyright owner or entity authorized by
14 the copyright owner that is granting the License.
15
16 "Legal Entity" shall mean the union of the acting entity and all
17 other entities that control, are controlled by, or are under common
18 control with that entity. For the purposes of this definition,
19 "control" means (i) the power, direct or indirect, to cause the
20 direction or management of such entity, whether by contract or
21 otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 outstanding shares, or (iii) beneficial ownership of such entity.
23
24 "You" (or "Your") shall mean an individual or Legal Entity
25 exercising permissions granted by this License.
26
27 "Source" form shall mean the preferred form for making modifications,
28 including but not limited to software source code, documentation
29 source, and configuration files.
30
31 "Object" form shall mean any form resulting from mechanical
32 transformation or translation of a Source form, including but
33 not limited to compiled object code, generated documentation,
34 and conversions to other media types.
35
36 "Work" shall mean the work of authorship, whether in Source or
37 Object form, made available under the License, as indicated by a
38 copyright notice that is included in or attached to the work
39 (an example is provided in the Appendix below).
40
41 "Derivative Works" shall mean any work, whether in Source or Object
42 form, that is based on (or derived from) the Work and for which the
43 editorial revisions, annotations, elaborations, or other modifications
44 represent, as a whole, an original work of authorship. For the purposes
45 of this License, Derivative Works shall not include works that remain
46 separable from, or merely link (or bind by name) to the interfaces of,
47 the Work and Derivative Works thereof.
48
49 "Contribution" shall mean any work of authorship, including
50 the original version of the Work and any modifications or additions
51 to that Work or Derivative Works thereof, that is intentionally
52 submitted to Licensor for inclusion in the Work by the copyright owner
53 or by an individual or Legal Entity authorized to submit on behalf of
54 the copyright owner. For the purposes of this definition, "submitted"
55 means any form of electronic, verbal, or written communication sent
56 to the Licensor or its representatives, including but not limited to
57 communication on electronic mailing lists, source code control systems,
58 and issue tracking systems that are managed by, or on behalf of, the
59 Licensor for the purpose of discussing and improving the Work, but
60 excluding communication that is conspicuously marked or otherwise
61 designated in writing by the copyright owner as "Not a Contribution."
62
63 "Contributor" shall mean Licensor and any individual or Legal Entity
64 on behalf of whom a Contribution has been received by Licensor and
65 subsequently incorporated within the Work.
66
67 2. Grant of Copyright License. Subject to the terms and conditions of
68 this License, each Contributor hereby grants to You a perpetual,
69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 copyright license to reproduce, prepare Derivative Works of,
71 publicly display, publicly perform, sublicense, and distribute the
72 Work and such Derivative Works in Source or Object form.
73
74 3. Grant of Patent License. Subject to the terms and conditions of
75 this License, each Contributor hereby grants to You a perpetual,
76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 (except as stated in this section) patent license to make, have made,
78 use, offer to sell, sell, import, and otherwise transfer the Work,
79 where such license applies only to those patent claims licensable
80 by such Contributor that are necessarily infringed by their
81 Contribution(s) alone or by combination of their Contribution(s)
82 with the Work to which such Contribution(s) was submitted. If You
83 institute patent litigation against any entity (including a
84 cross-claim or counterclaim in a lawsuit) alleging that the Work
85 or a Contribution incorporated within the Work constitutes direct
86 or contributory patent infringement, then any patent licenses
87 granted to You under this License for that Work shall terminate
88 as of the date such litigation is filed.
89
90 4. Redistribution. You may reproduce and distribute copies of the
91 Work or Derivative Works thereof in any medium, with or without
92 modifications, and in Source or Object form, provided that You
93 meet the following conditions:
94
95 (a) You must give any other recipients of the Work or
96 Derivative Works a copy of this License; and
97
98 (b) You must cause any modified files to carry prominent notices
99 stating that You changed the files; and
100
101 (c) You must retain, in the Source form of any Derivative Works
102 that You distribute, all copyright, patent, trademark, and
103 attribution notices from the Source form of the Work,
104 excluding those notices that do not pertain to any part of
105 the Derivative Works; and
106
107 (d) If the Work includes a "NOTICE" text file as part of its
108 distribution, then any Derivative Works that You distribute must
109 include a readable copy of the attribution notices contained
110 within such NOTICE file, excluding those notices that do not
111 pertain to any part of the Derivative Works, in at least one
112 of the following places: within a NOTICE text file distributed
113 as part of the Derivative Works; within the Source form or
114 documentation, if provided along with the Derivative Works; or,
115 within a display generated by the Derivative Works, if and
116 wherever such third-party notices normally appear. The contents
117 of the NOTICE file are for informational purposes only and
118 do not modify the License. You may add Your own attribution
119 notices within Derivative Works that You distribute, alongside
120 or as an addendum to the NOTICE text from the Work, provided
121 that such additional attribution notices cannot be construed
122 as modifying the License.
123
124 You may add Your own copyright statement to Your modifications and
125 may provide additional or different license terms and conditions
126 for use, reproduction, or distribution of Your modifications, or
127 for any such Derivative Works as a whole, provided Your use,
128 reproduction, and distribution of the Work otherwise complies with
129 the conditions stated in this License.
130
131 5. Submission of Contributions. Unless You explicitly state otherwise,
132 any Contribution intentionally submitted for inclusion in the Work
133 by You to the Licensor shall be under the terms and conditions of
134 this License, without any additional terms or conditions.
135 Notwithstanding the above, nothing herein shall supersede or modify
136 the terms of any separate license agreement you may have executed
137 with Licensor regarding such Contributions.
138
139 6. Trademarks. This License does not grant permission to use the trade
140 names, trademarks, service marks, or product names of the Licensor,
141 except as required for reasonable and customary use in describing the
142 origin of the Work and reproducing the content of the NOTICE file.
143
144 7. Disclaimer of Warranty. Unless required by applicable law or
145 agreed to in writing, Licensor provides the Work (and each
146 Contributor provides its Contributions) on an "AS IS" BASIS,
147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 implied, including, without limitation, any warranties or conditions
149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 PARTICULAR PURPOSE. You are solely responsible for determining the
151 appropriateness of using or redistributing the Work and assume any
152 risks associated with Your exercise of permissions under this License.
153
154 8. Limitation of Liability. In no event and under no legal theory,
155 whether in tort (including negligence), contract, or otherwise,
156 unless required by applicable law (such as deliberate and grossly
157 negligent acts) or agreed to in writing, shall any Contributor be
158 liable to You for damages, including any direct, indirect, special,
159 incidental, or consequential damages of any character arising as a
160 result of this License or out of the use or inability to use the
161 Work (including but not limited to damages for loss of goodwill,
162 work stoppage, computer failure or malfunction, or any and all
163 other commercial damages or losses), even if such Contributor
164 has been advised of the possibility of such damages.
165
166 9. Accepting Warranty or Additional Liability. While redistributing
167 the Work or Derivative Works thereof, You may choose to offer,
168 and charge a fee for, acceptance of support, warranty, indemnity,
169 or other liability obligations and/or rights consistent with this
170 License. However, in accepting such obligations, You may act only
171 on Your own behalf and on Your sole responsibility, not on behalf
172 of any other Contributor, and only if You agree to indemnify,
173 defend, and hold each Contributor harmless for any liability
174 incurred by, or claims asserted against, such Contributor by reason
175 of your accepting any such warranty or additional liability.
176
177 END OF TERMS AND CONDITIONS
178
179 APPENDIX: How to apply the Apache License to your work.
180
181 To apply the Apache License to your work, attach the following
182 boilerplate notice, with the fields enclosed by brackets "[]"
183 replaced with your own identifying information. (Don't include
184 the brackets!) The text should be enclosed in the appropriate
185 comment syntax for the file format. We also recommend that a
186 file or class name and description of purpose be included on the
187 same "printed page" as the copyright notice for easier
188 identification within third-party archives.
189
190 Copyright [yyyy] [name of copyright owner]
191
192 Licensed under the Apache License, Version 2.0 (the "License");
193 you may not use this file except in compliance with the License.
194 You may obtain a copy of the License at
195
196 http://www.apache.org/licenses/LICENSE-2.0
197
198 Unless required by applicable law or agreed to in writing, software
199 distributed under the License is distributed on an "AS IS" BASIS,
200 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 See the License for the specific language governing permissions and
202 limitations under the License.
0203
=== added file '3rdParty/evernote-sdk-cpp/LICENSE'
--- 3rdParty/evernote-sdk-cpp/LICENSE 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/LICENSE 2013-11-22 21:43:19 +0000
@@ -0,0 +1,27 @@
1/*
2 * Copyright (c) 2007-2012 by Evernote Corporation, All rights reserved.
3 *
4 * Use of the source code and binary libraries included in this package
5 * is permitted under the following terms:
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
028
=== added file '3rdParty/evernote-sdk-cpp/NOTICE'
--- 3rdParty/evernote-sdk-cpp/NOTICE 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/NOTICE 2013-11-22 21:43:19 +0000
@@ -0,0 +1,5 @@
1Apache Thrift
2Copyright 2006-2010 The Apache Software Foundation.
3
4This product includes software developed at
5The Apache Software Foundation (http://www.apache.org/).
0\ No newline at end of file6\ No newline at end of file
17
=== added file '3rdParty/evernote-sdk-cpp/README.md'
--- 3rdParty/evernote-sdk-cpp/README.md 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/README.md 2013-11-22 21:43:19 +0000
@@ -0,0 +1,14 @@
1Evernote SDK for C++
2=========================================
3
4Evernote API version 1.25
5
6Overview
7--------
8This SDK contains wrapper code used to call the Evernote Cloud API from C++ apps.
9
10Prerequisites
11-------------
12In order to use the code in this SDK, you need to obtain an API key from http://dev.evernote.com/documentation/cloud. You'll also find full API documentation on that page.
13
14In order to run the sample code, you need a user account on the sandbox service where you will do your development. Sign up for an account at https://sandbox.evernote.com/Registration.action
015
=== added file '3rdParty/evernote-sdk-cpp/evernote-sdk-cpp.pro'
--- 3rdParty/evernote-sdk-cpp/evernote-sdk-cpp.pro 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/evernote-sdk-cpp.pro 2013-11-22 21:43:19 +0000
@@ -0,0 +1,35 @@
1TEMPLATE = lib
2
3CONFIG = staticlib
4
5QMAKE_CXXFLAGS += -std=c++0x -fPIC
6
7INCLUDEPATH += ../libthrift
8
9LIBS += -L../libthrift -llibthrift
10
11SOURCES += src/Errors_constants.cpp \
12 src/Errors_types.cpp \
13 src/Limits_constants.cpp \
14 src/Limits_types.cpp \
15 src/NoteStore_constants.cpp \
16 src/NoteStore.cpp \
17 src/NoteStore_types.cpp \
18 src/Types_constants.cpp \
19 src/Types_types.cpp \
20 src/UserStore_constants.cpp \
21 src/UserStore.cpp \
22 src/UserStore_types.cpp
23
24HEADERS += src/Errors_constants.h \
25 src/Errors_types.h \
26 src/Limits_constants.h \
27 src/Limits_types.h \
28 src/NoteStore_constants.h \
29 src/NoteStore.h \
30 src/NoteStore_types.h \
31 src/Types_constants.h \
32 src/Types_types.h \
33 src/UserStore_constants.h \
34 src/UserStore.h \
35 src/UserStore_types.h
036
=== added directory '3rdParty/evernote-sdk-cpp/src'
=== added file '3rdParty/evernote-sdk-cpp/src/Errors_constants.cpp'
--- 3rdParty/evernote-sdk-cpp/src/Errors_constants.cpp 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Errors_constants.cpp 2013-11-22 21:43:19 +0000
@@ -0,0 +1,16 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#include "Errors_constants.h"
7
8namespace evernote { namespace edam {
9
10const ErrorsConstants g_Errors_constants;
11
12ErrorsConstants::ErrorsConstants() {
13}
14
15}} // namespace
16
017
=== added file '3rdParty/evernote-sdk-cpp/src/Errors_constants.h'
--- 3rdParty/evernote-sdk-cpp/src/Errors_constants.h 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Errors_constants.h 2013-11-22 21:43:19 +0000
@@ -0,0 +1,23 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#ifndef Errors_CONSTANTS_H
7#define Errors_CONSTANTS_H
8
9#include "Errors_types.h"
10
11namespace evernote { namespace edam {
12
13class ErrorsConstants {
14 public:
15 ErrorsConstants();
16
17};
18
19extern const ErrorsConstants g_Errors_constants;
20
21}} // namespace
22
23#endif
024
=== added file '3rdParty/evernote-sdk-cpp/src/Errors_types.cpp'
--- 3rdParty/evernote-sdk-cpp/src/Errors_types.cpp 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Errors_types.cpp 2013-11-22 21:43:19 +0000
@@ -0,0 +1,236 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#include "Errors_types.h"
7
8namespace evernote { namespace edam {
9
10const char* EDAMUserException::ascii_fingerprint = "24652790C81ECE22B629CB60A19F1E93";
11const uint8_t EDAMUserException::binary_fingerprint[16] = {0x24,0x65,0x27,0x90,0xC8,0x1E,0xCE,0x22,0xB6,0x29,0xCB,0x60,0xA1,0x9F,0x1E,0x93};
12
13uint32_t EDAMUserException::read(::apache::thrift::protocol::TProtocol* iprot) {
14
15 uint32_t xfer = 0;
16 std::string fname;
17 ::apache::thrift::protocol::TType ftype;
18 int16_t fid;
19
20 xfer += iprot->readStructBegin(fname);
21
22 using ::apache::thrift::protocol::TProtocolException;
23
24 bool isset_errorCode = false;
25
26 while (true)
27 {
28 xfer += iprot->readFieldBegin(fname, ftype, fid);
29 if (ftype == ::apache::thrift::protocol::T_STOP) {
30 break;
31 }
32 switch (fid)
33 {
34 case 1:
35 if (ftype == ::apache::thrift::protocol::T_I32) {
36 int32_t ecast0;
37 xfer += iprot->readI32(ecast0);
38 this->errorCode = (EDAMErrorCode::type)ecast0;
39 isset_errorCode = true;
40 } else {
41 xfer += iprot->skip(ftype);
42 }
43 break;
44 case 2:
45 if (ftype == ::apache::thrift::protocol::T_STRING) {
46 xfer += iprot->readString(this->parameter);
47 this->__isset.parameter = true;
48 } else {
49 xfer += iprot->skip(ftype);
50 }
51 break;
52 default:
53 xfer += iprot->skip(ftype);
54 break;
55 }
56 xfer += iprot->readFieldEnd();
57 }
58
59 xfer += iprot->readStructEnd();
60
61 if (!isset_errorCode)
62 throw TProtocolException(TProtocolException::INVALID_DATA);
63 return xfer;
64}
65
66uint32_t EDAMUserException::write(::apache::thrift::protocol::TProtocol* oprot) const {
67 uint32_t xfer = 0;
68 xfer += oprot->writeStructBegin("EDAMUserException");
69 xfer += oprot->writeFieldBegin("errorCode", ::apache::thrift::protocol::T_I32, 1);
70 xfer += oprot->writeI32((int32_t)this->errorCode);
71 xfer += oprot->writeFieldEnd();
72 if (this->__isset.parameter) {
73 xfer += oprot->writeFieldBegin("parameter", ::apache::thrift::protocol::T_STRING, 2);
74 xfer += oprot->writeString(this->parameter);
75 xfer += oprot->writeFieldEnd();
76 }
77 xfer += oprot->writeFieldStop();
78 xfer += oprot->writeStructEnd();
79 return xfer;
80}
81
82const char* EDAMSystemException::ascii_fingerprint = "106D9EB644563D065C091D0BD32D7D44";
83const uint8_t EDAMSystemException::binary_fingerprint[16] = {0x10,0x6D,0x9E,0xB6,0x44,0x56,0x3D,0x06,0x5C,0x09,0x1D,0x0B,0xD3,0x2D,0x7D,0x44};
84
85uint32_t EDAMSystemException::read(::apache::thrift::protocol::TProtocol* iprot) {
86
87 uint32_t xfer = 0;
88 std::string fname;
89 ::apache::thrift::protocol::TType ftype;
90 int16_t fid;
91
92 xfer += iprot->readStructBegin(fname);
93
94 using ::apache::thrift::protocol::TProtocolException;
95
96 bool isset_errorCode = false;
97
98 while (true)
99 {
100 xfer += iprot->readFieldBegin(fname, ftype, fid);
101 if (ftype == ::apache::thrift::protocol::T_STOP) {
102 break;
103 }
104 switch (fid)
105 {
106 case 1:
107 if (ftype == ::apache::thrift::protocol::T_I32) {
108 int32_t ecast1;
109 xfer += iprot->readI32(ecast1);
110 this->errorCode = (EDAMErrorCode::type)ecast1;
111 isset_errorCode = true;
112 } else {
113 xfer += iprot->skip(ftype);
114 }
115 break;
116 case 2:
117 if (ftype == ::apache::thrift::protocol::T_STRING) {
118 xfer += iprot->readString(this->message);
119 this->__isset.message = true;
120 } else {
121 xfer += iprot->skip(ftype);
122 }
123 break;
124 case 3:
125 if (ftype == ::apache::thrift::protocol::T_I32) {
126 xfer += iprot->readI32(this->rateLimitDuration);
127 this->__isset.rateLimitDuration = true;
128 } else {
129 xfer += iprot->skip(ftype);
130 }
131 break;
132 default:
133 xfer += iprot->skip(ftype);
134 break;
135 }
136 xfer += iprot->readFieldEnd();
137 }
138
139 xfer += iprot->readStructEnd();
140
141 if (!isset_errorCode)
142 throw TProtocolException(TProtocolException::INVALID_DATA);
143 return xfer;
144}
145
146uint32_t EDAMSystemException::write(::apache::thrift::protocol::TProtocol* oprot) const {
147 uint32_t xfer = 0;
148 xfer += oprot->writeStructBegin("EDAMSystemException");
149 xfer += oprot->writeFieldBegin("errorCode", ::apache::thrift::protocol::T_I32, 1);
150 xfer += oprot->writeI32((int32_t)this->errorCode);
151 xfer += oprot->writeFieldEnd();
152 if (this->__isset.message) {
153 xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 2);
154 xfer += oprot->writeString(this->message);
155 xfer += oprot->writeFieldEnd();
156 }
157 if (this->__isset.rateLimitDuration) {
158 xfer += oprot->writeFieldBegin("rateLimitDuration", ::apache::thrift::protocol::T_I32, 3);
159 xfer += oprot->writeI32(this->rateLimitDuration);
160 xfer += oprot->writeFieldEnd();
161 }
162 xfer += oprot->writeFieldStop();
163 xfer += oprot->writeStructEnd();
164 return xfer;
165}
166
167const char* EDAMNotFoundException::ascii_fingerprint = "D0297FC5011701BD87898CC36146A565";
168const uint8_t EDAMNotFoundException::binary_fingerprint[16] = {0xD0,0x29,0x7F,0xC5,0x01,0x17,0x01,0xBD,0x87,0x89,0x8C,0xC3,0x61,0x46,0xA5,0x65};
169
170uint32_t EDAMNotFoundException::read(::apache::thrift::protocol::TProtocol* iprot) {
171
172 uint32_t xfer = 0;
173 std::string fname;
174 ::apache::thrift::protocol::TType ftype;
175 int16_t fid;
176
177 xfer += iprot->readStructBegin(fname);
178
179 using ::apache::thrift::protocol::TProtocolException;
180
181
182 while (true)
183 {
184 xfer += iprot->readFieldBegin(fname, ftype, fid);
185 if (ftype == ::apache::thrift::protocol::T_STOP) {
186 break;
187 }
188 switch (fid)
189 {
190 case 1:
191 if (ftype == ::apache::thrift::protocol::T_STRING) {
192 xfer += iprot->readString(this->identifier);
193 this->__isset.identifier = true;
194 } else {
195 xfer += iprot->skip(ftype);
196 }
197 break;
198 case 2:
199 if (ftype == ::apache::thrift::protocol::T_STRING) {
200 xfer += iprot->readString(this->key);
201 this->__isset.key = true;
202 } else {
203 xfer += iprot->skip(ftype);
204 }
205 break;
206 default:
207 xfer += iprot->skip(ftype);
208 break;
209 }
210 xfer += iprot->readFieldEnd();
211 }
212
213 xfer += iprot->readStructEnd();
214
215 return xfer;
216}
217
218uint32_t EDAMNotFoundException::write(::apache::thrift::protocol::TProtocol* oprot) const {
219 uint32_t xfer = 0;
220 xfer += oprot->writeStructBegin("EDAMNotFoundException");
221 if (this->__isset.identifier) {
222 xfer += oprot->writeFieldBegin("identifier", ::apache::thrift::protocol::T_STRING, 1);
223 xfer += oprot->writeString(this->identifier);
224 xfer += oprot->writeFieldEnd();
225 }
226 if (this->__isset.key) {
227 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 2);
228 xfer += oprot->writeString(this->key);
229 xfer += oprot->writeFieldEnd();
230 }
231 xfer += oprot->writeFieldStop();
232 xfer += oprot->writeStructEnd();
233 return xfer;
234}
235
236}} // namespace
0237
=== added file '3rdParty/evernote-sdk-cpp/src/Errors_types.h'
--- 3rdParty/evernote-sdk-cpp/src/Errors_types.h 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Errors_types.h 2013-11-22 21:43:19 +0000
@@ -0,0 +1,179 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#ifndef Errors_TYPES_H
7#define Errors_TYPES_H
8
9#include <Thrift.h>
10#include <TApplicationException.h>
11#include <protocol/TProtocol.h>
12#include <transport/TTransport.h>
13
14
15
16namespace evernote { namespace edam {
17
18struct EDAMErrorCode {
19 enum type {
20 UNKNOWN = 1,
21 BAD_DATA_FORMAT = 2,
22 PERMISSION_DENIED = 3,
23 INTERNAL_ERROR = 4,
24 DATA_REQUIRED = 5,
25 LIMIT_REACHED = 6,
26 QUOTA_REACHED = 7,
27 INVALID_AUTH = 8,
28 AUTH_EXPIRED = 9,
29 DATA_CONFLICT = 10,
30 ENML_VALIDATION = 11,
31 SHARD_UNAVAILABLE = 12,
32 LEN_TOO_SHORT = 13,
33 LEN_TOO_LONG = 14,
34 TOO_FEW = 15,
35 TOO_MANY = 16,
36 UNSUPPORTED_OPERATION = 17,
37 TAKEN_DOWN = 18,
38 RATE_LIMIT_REACHED = 19
39 };
40};
41
42typedef struct _EDAMUserException__isset {
43 _EDAMUserException__isset() : parameter(false) {}
44 bool parameter;
45} _EDAMUserException__isset;
46
47class EDAMUserException : public ::apache::thrift::TException {
48 public:
49
50 static const char* ascii_fingerprint; // = "24652790C81ECE22B629CB60A19F1E93";
51 static const uint8_t binary_fingerprint[16]; // = {0x24,0x65,0x27,0x90,0xC8,0x1E,0xCE,0x22,0xB6,0x29,0xCB,0x60,0xA1,0x9F,0x1E,0x93};
52
53 EDAMUserException() : parameter("") {
54 }
55
56 virtual ~EDAMUserException() throw() {}
57
58 EDAMErrorCode::type errorCode;
59 std::string parameter;
60
61 _EDAMUserException__isset __isset;
62
63 bool operator == (const EDAMUserException & rhs) const
64 {
65 if (!(errorCode == rhs.errorCode))
66 return false;
67 if (__isset.parameter != rhs.__isset.parameter)
68 return false;
69 else if (__isset.parameter && !(parameter == rhs.parameter))
70 return false;
71 return true;
72 }
73 bool operator != (const EDAMUserException &rhs) const {
74 return !(*this == rhs);
75 }
76
77 bool operator < (const EDAMUserException & ) const;
78
79 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
80 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
81
82};
83
84typedef struct _EDAMSystemException__isset {
85 _EDAMSystemException__isset() : message(false), rateLimitDuration(false) {}
86 bool message;
87 bool rateLimitDuration;
88} _EDAMSystemException__isset;
89
90class EDAMSystemException : public ::apache::thrift::TException {
91 public:
92
93 static const char* ascii_fingerprint; // = "106D9EB644563D065C091D0BD32D7D44";
94 static const uint8_t binary_fingerprint[16]; // = {0x10,0x6D,0x9E,0xB6,0x44,0x56,0x3D,0x06,0x5C,0x09,0x1D,0x0B,0xD3,0x2D,0x7D,0x44};
95
96 EDAMSystemException() : message(""), rateLimitDuration(0) {
97 }
98
99 virtual ~EDAMSystemException() throw() {}
100
101 EDAMErrorCode::type errorCode;
102 std::string message;
103 int32_t rateLimitDuration;
104
105 _EDAMSystemException__isset __isset;
106
107 bool operator == (const EDAMSystemException & rhs) const
108 {
109 if (!(errorCode == rhs.errorCode))
110 return false;
111 if (__isset.message != rhs.__isset.message)
112 return false;
113 else if (__isset.message && !(message == rhs.message))
114 return false;
115 if (__isset.rateLimitDuration != rhs.__isset.rateLimitDuration)
116 return false;
117 else if (__isset.rateLimitDuration && !(rateLimitDuration == rhs.rateLimitDuration))
118 return false;
119 return true;
120 }
121 bool operator != (const EDAMSystemException &rhs) const {
122 return !(*this == rhs);
123 }
124
125 bool operator < (const EDAMSystemException & ) const;
126
127 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
128 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
129
130};
131
132typedef struct _EDAMNotFoundException__isset {
133 _EDAMNotFoundException__isset() : identifier(false), key(false) {}
134 bool identifier;
135 bool key;
136} _EDAMNotFoundException__isset;
137
138class EDAMNotFoundException : public ::apache::thrift::TException {
139 public:
140
141 static const char* ascii_fingerprint; // = "D0297FC5011701BD87898CC36146A565";
142 static const uint8_t binary_fingerprint[16]; // = {0xD0,0x29,0x7F,0xC5,0x01,0x17,0x01,0xBD,0x87,0x89,0x8C,0xC3,0x61,0x46,0xA5,0x65};
143
144 EDAMNotFoundException() : identifier(""), key("") {
145 }
146
147 virtual ~EDAMNotFoundException() throw() {}
148
149 std::string identifier;
150 std::string key;
151
152 _EDAMNotFoundException__isset __isset;
153
154 bool operator == (const EDAMNotFoundException & rhs) const
155 {
156 if (__isset.identifier != rhs.__isset.identifier)
157 return false;
158 else if (__isset.identifier && !(identifier == rhs.identifier))
159 return false;
160 if (__isset.key != rhs.__isset.key)
161 return false;
162 else if (__isset.key && !(key == rhs.key))
163 return false;
164 return true;
165 }
166 bool operator != (const EDAMNotFoundException &rhs) const {
167 return !(*this == rhs);
168 }
169
170 bool operator < (const EDAMNotFoundException & ) const;
171
172 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
173 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
174
175};
176
177}} // namespace
178
179#endif
0180
=== added file '3rdParty/evernote-sdk-cpp/src/Limits_constants.cpp'
--- 3rdParty/evernote-sdk-cpp/src/Limits_constants.cpp 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Limits_constants.cpp 2013-11-22 21:43:19 +0000
@@ -0,0 +1,320 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#include "Limits_constants.h"
7
8namespace evernote { namespace limits {
9
10const LimitsConstants g_Limits_constants;
11
12LimitsConstants::LimitsConstants() {
13 EDAM_ATTRIBUTE_LEN_MIN = 1;
14
15 EDAM_ATTRIBUTE_LEN_MAX = 4096;
16
17 EDAM_ATTRIBUTE_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,4096}$";
18
19 EDAM_ATTRIBUTE_LIST_MAX = 100;
20
21 EDAM_ATTRIBUTE_MAP_MAX = 100;
22
23 EDAM_GUID_LEN_MIN = 36;
24
25 EDAM_GUID_LEN_MAX = 36;
26
27 EDAM_GUID_REGEX = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
28
29 EDAM_EMAIL_LEN_MIN = 6;
30
31 EDAM_EMAIL_LEN_MAX = 255;
32
33 EDAM_EMAIL_LOCAL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$";
34
35 EDAM_EMAIL_DOMAIN_REGEX = "^[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$";
36
37 EDAM_EMAIL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$";
38
39 EDAM_VAT_REGEX = "^((AT)?U[0-9]{8}|(BE)?0?[0-9]{9}|(BG)?[0-9]{9,10}|(CY)?[0-9]{8}L|(CZ)?[0-9]{8,10}|(DE)?[0-9]{9}|(DK)?[0-9]{8}|(EE)?[0-9]{9}|(EL|GR)?[0-9]{9}|(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]|(FI)?[0-9]{8}|(FR)?[0-9A-Z]{2}[0-9]{9}|(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})|(HU)?[0-9]{8}|(IE)?[0-9]S[0-9]{5}L|(IT)?[0-9]{11}|(LT)?([0-9]{9}|[0-9]{12})|(LU)?[0-9]{8}|(LV)?[0-9]{11}|(MT)?[0-9]{8}|(NL)?[0-9]{9}B[0-9]{2}|(PL)?[0-9]{10}|(PT)?[0-9]{9}|(RO)?[0-9]{2,10}|(SE)?[0-9]{12}|(SI)?[0-9]{8}|(SK)?[0-9]{10})|[0-9]{9}MVA|[0-9]{6}|CHE[0-9]{9}(TVA|MWST|IVA)$";
40
41 EDAM_TIMEZONE_LEN_MIN = 1;
42
43 EDAM_TIMEZONE_LEN_MAX = 32;
44
45 EDAM_TIMEZONE_REGEX = "^([A-Za-z_-]+(/[A-Za-z_-]+)*)|(GMT(-|\\+)[0-9]{1,2}(:[0-9]{2})?)$";
46
47 EDAM_MIME_LEN_MIN = 3;
48
49 EDAM_MIME_LEN_MAX = 255;
50
51 EDAM_MIME_REGEX = "^[A-Za-z]+/[A-Za-z0-9._+-]+$";
52
53 EDAM_MIME_TYPE_GIF = "image/gif";
54
55 EDAM_MIME_TYPE_JPEG = "image/jpeg";
56
57 EDAM_MIME_TYPE_PNG = "image/png";
58
59 EDAM_MIME_TYPE_WAV = "audio/wav";
60
61 EDAM_MIME_TYPE_MP3 = "audio/mpeg";
62
63 EDAM_MIME_TYPE_AMR = "audio/amr";
64
65 EDAM_MIME_TYPE_AAC = "audio/aac";
66
67 EDAM_MIME_TYPE_M4A = "audio/mp4";
68
69 EDAM_MIME_TYPE_MP4_VIDEO = "video/mp4";
70
71 EDAM_MIME_TYPE_INK = "application/vnd.evernote.ink";
72
73 EDAM_MIME_TYPE_PDF = "application/pdf";
74
75 EDAM_MIME_TYPE_DEFAULT = "application/octet-stream";
76
77 EDAM_MIME_TYPES.insert("image/gif");
78 EDAM_MIME_TYPES.insert("image/jpeg");
79 EDAM_MIME_TYPES.insert("image/png");
80 EDAM_MIME_TYPES.insert("audio/wav");
81 EDAM_MIME_TYPES.insert("audio/mpeg");
82 EDAM_MIME_TYPES.insert("audio/amr");
83 EDAM_MIME_TYPES.insert("application/vnd.evernote.ink");
84 EDAM_MIME_TYPES.insert("application/pdf");
85 EDAM_MIME_TYPES.insert("video/mp4");
86 EDAM_MIME_TYPES.insert("audio/aac");
87 EDAM_MIME_TYPES.insert("audio/mp4");
88
89 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/msword");
90 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/mspowerpoint");
91 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/excel");
92 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.ms-word");
93 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.ms-powerpoint");
94 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.ms-excel");
95 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
96 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.openxmlformats-officedocument.presentationml.presentation");
97 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
98 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.apple.pages");
99 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.apple.numbers");
100 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/vnd.apple.keynote");
101 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/x-iwork-pages-sffpages");
102 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/x-iwork-numbers-sffnumbers");
103 EDAM_INDEXABLE_RESOURCE_MIME_TYPES.insert("application/x-iwork-keynote-sffkey");
104
105 EDAM_SEARCH_QUERY_LEN_MIN = 0;
106
107 EDAM_SEARCH_QUERY_LEN_MAX = 1024;
108
109 EDAM_SEARCH_QUERY_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{0,1024}$";
110
111 EDAM_HASH_LEN = 16;
112
113 EDAM_USER_USERNAME_LEN_MIN = 1;
114
115 EDAM_USER_USERNAME_LEN_MAX = 64;
116
117 EDAM_USER_USERNAME_REGEX = "^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$";
118
119 EDAM_USER_NAME_LEN_MIN = 1;
120
121 EDAM_USER_NAME_LEN_MAX = 255;
122
123 EDAM_USER_NAME_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,255}$";
124
125 EDAM_TAG_NAME_LEN_MIN = 1;
126
127 EDAM_TAG_NAME_LEN_MAX = 100;
128
129 EDAM_TAG_NAME_REGEX = "^[^,\\p{Cc}\\p{Z}]([^,\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^,\\p{Cc}\\p{Z}])?$";
130
131 EDAM_NOTE_TITLE_LEN_MIN = 1;
132
133 EDAM_NOTE_TITLE_LEN_MAX = 255;
134
135 EDAM_NOTE_TITLE_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,253}[^\\p{Cc}\\p{Z}])?$";
136
137 EDAM_NOTE_CONTENT_LEN_MIN = 0;
138
139 EDAM_NOTE_CONTENT_LEN_MAX = 5242880;
140
141 EDAM_APPLICATIONDATA_NAME_LEN_MIN = 3;
142
143 EDAM_APPLICATIONDATA_NAME_LEN_MAX = 32;
144
145 EDAM_APPLICATIONDATA_VALUE_LEN_MIN = 0;
146
147 EDAM_APPLICATIONDATA_VALUE_LEN_MAX = 4092;
148
149 EDAM_APPLICATIONDATA_ENTRY_LEN_MAX = 4095;
150
151 EDAM_APPLICATIONDATA_NAME_REGEX = "^[A-Za-z0-9_.-]{3,32}$";
152
153 EDAM_APPLICATIONDATA_VALUE_REGEX = "^[^\\p{Cc}]{0,4092}$";
154
155 EDAM_NOTEBOOK_NAME_LEN_MIN = 1;
156
157 EDAM_NOTEBOOK_NAME_LEN_MAX = 100;
158
159 EDAM_NOTEBOOK_NAME_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$";
160
161 EDAM_NOTEBOOK_STACK_LEN_MIN = 1;
162
163 EDAM_NOTEBOOK_STACK_LEN_MAX = 100;
164
165 EDAM_NOTEBOOK_STACK_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$";
166
167 EDAM_PUBLISHING_URI_LEN_MIN = 1;
168
169 EDAM_PUBLISHING_URI_LEN_MAX = 255;
170
171 EDAM_PUBLISHING_URI_REGEX = "^[a-zA-Z0-9.~_+-]{1,255}$";
172
173 EDAM_PUBLISHING_URI_PROHIBITED.insert("..");
174
175 EDAM_PUBLISHING_DESCRIPTION_LEN_MIN = 1;
176
177 EDAM_PUBLISHING_DESCRIPTION_LEN_MAX = 200;
178
179 EDAM_PUBLISHING_DESCRIPTION_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$";
180
181 EDAM_SAVED_SEARCH_NAME_LEN_MIN = 1;
182
183 EDAM_SAVED_SEARCH_NAME_LEN_MAX = 100;
184
185 EDAM_SAVED_SEARCH_NAME_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$";
186
187 EDAM_USER_PASSWORD_LEN_MIN = 6;
188
189 EDAM_USER_PASSWORD_LEN_MAX = 64;
190
191 EDAM_USER_PASSWORD_REGEX = "^[A-Za-z0-9!#$%&'()*+,./:;<=>?@^_`{|}~\\[\\]\\\\-]{6,64}$";
192
193 EDAM_BUSINESS_URI_LEN_MAX = 32;
194
195 EDAM_NOTE_TAGS_MAX = 100;
196
197 EDAM_NOTE_RESOURCES_MAX = 1000;
198
199 EDAM_USER_TAGS_MAX = 100000;
200
201 EDAM_BUSINESS_TAGS_MAX = 100000;
202
203 EDAM_USER_SAVED_SEARCHES_MAX = 100;
204
205 EDAM_USER_NOTES_MAX = 100000;
206
207 EDAM_BUSINESS_NOTES_MAX = 500000;
208
209 EDAM_USER_NOTEBOOKS_MAX = 250;
210
211 EDAM_BUSINESS_NOTEBOOKS_MAX = 5000;
212
213 EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10;
214
215 EDAM_USER_MAIL_LIMIT_DAILY_FREE = 50;
216
217 EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM = 200;
218
219 EDAM_USER_UPLOAD_LIMIT_FREE = 62914560LL;
220
221 EDAM_USER_UPLOAD_LIMIT_PREMIUM = 1073741824LL;
222
223 EDAM_USER_UPLOAD_LIMIT_BUSINESS = 2147483647LL;
224
225 EDAM_NOTE_SIZE_MAX_FREE = 26214400;
226
227 EDAM_NOTE_SIZE_MAX_PREMIUM = 104857600;
228
229 EDAM_RESOURCE_SIZE_MAX_FREE = 26214400;
230
231 EDAM_RESOURCE_SIZE_MAX_PREMIUM = 104857600;
232
233 EDAM_USER_LINKED_NOTEBOOK_MAX = 100;
234
235 EDAM_USER_LINKED_NOTEBOOK_MAX_PREMIUM = 250;
236
237 EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250;
238
239 EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3;
240
241 EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32;
242
243 EDAM_NOTE_CONTENT_CLASS_REGEX = "^[A-Za-z0-9_.-]{3,32}$";
244
245 EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = "evernote.hello.";
246
247 EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = "evernote.food.";
248
249 EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = "evernote.hello.encounter";
250
251 EDAM_CONTENT_CLASS_HELLO_PROFILE = "evernote.hello.profile";
252
253 EDAM_CONTENT_CLASS_FOOD_MEAL = "evernote.food.meal";
254
255 EDAM_CONTENT_CLASS_SKITCH_PREFIX = "evernote.skitch";
256
257 EDAM_CONTENT_CLASS_SKITCH = "evernote.skitch";
258
259 EDAM_CONTENT_CLASS_SKITCH_PDF = "evernote.skitch.pdf";
260
261 EDAM_CONTENT_CLASS_PENULTIMATE_PREFIX = "evernote.penultimate.";
262
263 EDAM_CONTENT_CLASS_PENULTIMATE_NOTEBOOK = "evernote.penultimate.notebook";
264
265 EDAM_RELATED_PLAINTEXT_LEN_MIN = 1;
266
267 EDAM_RELATED_PLAINTEXT_LEN_MAX = 131072;
268
269 EDAM_RELATED_MAX_NOTES = 25;
270
271 EDAM_RELATED_MAX_NOTEBOOKS = 1;
272
273 EDAM_RELATED_MAX_TAGS = 25;
274
275 EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN = 1;
276
277 EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX = 200;
278
279 EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX = "^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$";
280
281 EDAM_BUSINESS_PHONE_NUMBER_LEN_MAX = 20;
282
283 EDAM_PREFERENCE_NAME_LEN_MIN = 3;
284
285 EDAM_PREFERENCE_NAME_LEN_MAX = 32;
286
287 EDAM_PREFERENCE_VALUE_LEN_MIN = 1;
288
289 EDAM_PREFERENCE_VALUE_LEN_MAX = 1024;
290
291 EDAM_MAX_PREFERENCES = 100;
292
293 EDAM_MAX_VALUES_PER_PREFERENCE = 256;
294
295 EDAM_PREFERENCE_NAME_REGEX = "^[A-Za-z0-9_.-]{3,32}$";
296
297 EDAM_PREFERENCE_VALUE_REGEX = "^[^\\p{Cc}]{1,1024}$";
298
299 EDAM_PREFERENCE_SHORTCUTS = "evernote.shortcuts";
300
301 EDAM_PREFERENCE_SHORTCUTS_MAX_VALUES = 250;
302
303 EDAM_DEVICE_ID_LEN_MAX = 32;
304
305 EDAM_DEVICE_ID_REGEX = "^[^\\p{Cc}]{1,32}$";
306
307 EDAM_DEVICE_DESCRIPTION_LEN_MAX = 64;
308
309 EDAM_DEVICE_DESCRIPTION_REGEX = "^[^\\p{Cc}]{1,64}$";
310
311 EDAM_SEARCH_SUGGESTIONS_MAX = 10;
312
313 EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MAX = 1024;
314
315 EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MIN = 2;
316
317}
318
319}} // namespace
320
0321
=== added file '3rdParty/evernote-sdk-cpp/src/Limits_constants.h'
--- 3rdParty/evernote-sdk-cpp/src/Limits_constants.h 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Limits_constants.h 2013-11-22 21:43:19 +0000
@@ -0,0 +1,163 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#ifndef Limits_CONSTANTS_H
7#define Limits_CONSTANTS_H
8
9#include "Limits_types.h"
10
11namespace evernote { namespace limits {
12
13class LimitsConstants {
14 public:
15 LimitsConstants();
16
17 int32_t EDAM_ATTRIBUTE_LEN_MIN;
18 int32_t EDAM_ATTRIBUTE_LEN_MAX;
19 std::string EDAM_ATTRIBUTE_REGEX;
20 int32_t EDAM_ATTRIBUTE_LIST_MAX;
21 int32_t EDAM_ATTRIBUTE_MAP_MAX;
22 int32_t EDAM_GUID_LEN_MIN;
23 int32_t EDAM_GUID_LEN_MAX;
24 std::string EDAM_GUID_REGEX;
25 int32_t EDAM_EMAIL_LEN_MIN;
26 int32_t EDAM_EMAIL_LEN_MAX;
27 std::string EDAM_EMAIL_LOCAL_REGEX;
28 std::string EDAM_EMAIL_DOMAIN_REGEX;
29 std::string EDAM_EMAIL_REGEX;
30 std::string EDAM_VAT_REGEX;
31 int32_t EDAM_TIMEZONE_LEN_MIN;
32 int32_t EDAM_TIMEZONE_LEN_MAX;
33 std::string EDAM_TIMEZONE_REGEX;
34 int32_t EDAM_MIME_LEN_MIN;
35 int32_t EDAM_MIME_LEN_MAX;
36 std::string EDAM_MIME_REGEX;
37 std::string EDAM_MIME_TYPE_GIF;
38 std::string EDAM_MIME_TYPE_JPEG;
39 std::string EDAM_MIME_TYPE_PNG;
40 std::string EDAM_MIME_TYPE_WAV;
41 std::string EDAM_MIME_TYPE_MP3;
42 std::string EDAM_MIME_TYPE_AMR;
43 std::string EDAM_MIME_TYPE_AAC;
44 std::string EDAM_MIME_TYPE_M4A;
45 std::string EDAM_MIME_TYPE_MP4_VIDEO;
46 std::string EDAM_MIME_TYPE_INK;
47 std::string EDAM_MIME_TYPE_PDF;
48 std::string EDAM_MIME_TYPE_DEFAULT;
49 std::set<std::string> EDAM_MIME_TYPES;
50 std::set<std::string> EDAM_INDEXABLE_RESOURCE_MIME_TYPES;
51 int32_t EDAM_SEARCH_QUERY_LEN_MIN;
52 int32_t EDAM_SEARCH_QUERY_LEN_MAX;
53 std::string EDAM_SEARCH_QUERY_REGEX;
54 int32_t EDAM_HASH_LEN;
55 int32_t EDAM_USER_USERNAME_LEN_MIN;
56 int32_t EDAM_USER_USERNAME_LEN_MAX;
57 std::string EDAM_USER_USERNAME_REGEX;
58 int32_t EDAM_USER_NAME_LEN_MIN;
59 int32_t EDAM_USER_NAME_LEN_MAX;
60 std::string EDAM_USER_NAME_REGEX;
61 int32_t EDAM_TAG_NAME_LEN_MIN;
62 int32_t EDAM_TAG_NAME_LEN_MAX;
63 std::string EDAM_TAG_NAME_REGEX;
64 int32_t EDAM_NOTE_TITLE_LEN_MIN;
65 int32_t EDAM_NOTE_TITLE_LEN_MAX;
66 std::string EDAM_NOTE_TITLE_REGEX;
67 int32_t EDAM_NOTE_CONTENT_LEN_MIN;
68 int32_t EDAM_NOTE_CONTENT_LEN_MAX;
69 int32_t EDAM_APPLICATIONDATA_NAME_LEN_MIN;
70 int32_t EDAM_APPLICATIONDATA_NAME_LEN_MAX;
71 int32_t EDAM_APPLICATIONDATA_VALUE_LEN_MIN;
72 int32_t EDAM_APPLICATIONDATA_VALUE_LEN_MAX;
73 int32_t EDAM_APPLICATIONDATA_ENTRY_LEN_MAX;
74 std::string EDAM_APPLICATIONDATA_NAME_REGEX;
75 std::string EDAM_APPLICATIONDATA_VALUE_REGEX;
76 int32_t EDAM_NOTEBOOK_NAME_LEN_MIN;
77 int32_t EDAM_NOTEBOOK_NAME_LEN_MAX;
78 std::string EDAM_NOTEBOOK_NAME_REGEX;
79 int32_t EDAM_NOTEBOOK_STACK_LEN_MIN;
80 int32_t EDAM_NOTEBOOK_STACK_LEN_MAX;
81 std::string EDAM_NOTEBOOK_STACK_REGEX;
82 int32_t EDAM_PUBLISHING_URI_LEN_MIN;
83 int32_t EDAM_PUBLISHING_URI_LEN_MAX;
84 std::string EDAM_PUBLISHING_URI_REGEX;
85 std::set<std::string> EDAM_PUBLISHING_URI_PROHIBITED;
86 int32_t EDAM_PUBLISHING_DESCRIPTION_LEN_MIN;
87 int32_t EDAM_PUBLISHING_DESCRIPTION_LEN_MAX;
88 std::string EDAM_PUBLISHING_DESCRIPTION_REGEX;
89 int32_t EDAM_SAVED_SEARCH_NAME_LEN_MIN;
90 int32_t EDAM_SAVED_SEARCH_NAME_LEN_MAX;
91 std::string EDAM_SAVED_SEARCH_NAME_REGEX;
92 int32_t EDAM_USER_PASSWORD_LEN_MIN;
93 int32_t EDAM_USER_PASSWORD_LEN_MAX;
94 std::string EDAM_USER_PASSWORD_REGEX;
95 int32_t EDAM_BUSINESS_URI_LEN_MAX;
96 int32_t EDAM_NOTE_TAGS_MAX;
97 int32_t EDAM_NOTE_RESOURCES_MAX;
98 int32_t EDAM_USER_TAGS_MAX;
99 int32_t EDAM_BUSINESS_TAGS_MAX;
100 int32_t EDAM_USER_SAVED_SEARCHES_MAX;
101 int32_t EDAM_USER_NOTES_MAX;
102 int32_t EDAM_BUSINESS_NOTES_MAX;
103 int32_t EDAM_USER_NOTEBOOKS_MAX;
104 int32_t EDAM_BUSINESS_NOTEBOOKS_MAX;
105 int32_t EDAM_USER_RECENT_MAILED_ADDRESSES_MAX;
106 int32_t EDAM_USER_MAIL_LIMIT_DAILY_FREE;
107 int32_t EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM;
108 int64_t EDAM_USER_UPLOAD_LIMIT_FREE;
109 int64_t EDAM_USER_UPLOAD_LIMIT_PREMIUM;
110 int64_t EDAM_USER_UPLOAD_LIMIT_BUSINESS;
111 int32_t EDAM_NOTE_SIZE_MAX_FREE;
112 int32_t EDAM_NOTE_SIZE_MAX_PREMIUM;
113 int32_t EDAM_RESOURCE_SIZE_MAX_FREE;
114 int32_t EDAM_RESOURCE_SIZE_MAX_PREMIUM;
115 int32_t EDAM_USER_LINKED_NOTEBOOK_MAX;
116 int32_t EDAM_USER_LINKED_NOTEBOOK_MAX_PREMIUM;
117 int32_t EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX;
118 int32_t EDAM_NOTE_CONTENT_CLASS_LEN_MIN;
119 int32_t EDAM_NOTE_CONTENT_CLASS_LEN_MAX;
120 std::string EDAM_NOTE_CONTENT_CLASS_REGEX;
121 std::string EDAM_HELLO_APP_CONTENT_CLASS_PREFIX;
122 std::string EDAM_FOOD_APP_CONTENT_CLASS_PREFIX;
123 std::string EDAM_CONTENT_CLASS_HELLO_ENCOUNTER;
124 std::string EDAM_CONTENT_CLASS_HELLO_PROFILE;
125 std::string EDAM_CONTENT_CLASS_FOOD_MEAL;
126 std::string EDAM_CONTENT_CLASS_SKITCH_PREFIX;
127 std::string EDAM_CONTENT_CLASS_SKITCH;
128 std::string EDAM_CONTENT_CLASS_SKITCH_PDF;
129 std::string EDAM_CONTENT_CLASS_PENULTIMATE_PREFIX;
130 std::string EDAM_CONTENT_CLASS_PENULTIMATE_NOTEBOOK;
131 int32_t EDAM_RELATED_PLAINTEXT_LEN_MIN;
132 int32_t EDAM_RELATED_PLAINTEXT_LEN_MAX;
133 int32_t EDAM_RELATED_MAX_NOTES;
134 int32_t EDAM_RELATED_MAX_NOTEBOOKS;
135 int32_t EDAM_RELATED_MAX_TAGS;
136 int32_t EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN;
137 int32_t EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX;
138 std::string EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX;
139 int32_t EDAM_BUSINESS_PHONE_NUMBER_LEN_MAX;
140 int32_t EDAM_PREFERENCE_NAME_LEN_MIN;
141 int32_t EDAM_PREFERENCE_NAME_LEN_MAX;
142 int32_t EDAM_PREFERENCE_VALUE_LEN_MIN;
143 int32_t EDAM_PREFERENCE_VALUE_LEN_MAX;
144 int32_t EDAM_MAX_PREFERENCES;
145 int32_t EDAM_MAX_VALUES_PER_PREFERENCE;
146 std::string EDAM_PREFERENCE_NAME_REGEX;
147 std::string EDAM_PREFERENCE_VALUE_REGEX;
148 std::string EDAM_PREFERENCE_SHORTCUTS;
149 int32_t EDAM_PREFERENCE_SHORTCUTS_MAX_VALUES;
150 int32_t EDAM_DEVICE_ID_LEN_MAX;
151 std::string EDAM_DEVICE_ID_REGEX;
152 int32_t EDAM_DEVICE_DESCRIPTION_LEN_MAX;
153 std::string EDAM_DEVICE_DESCRIPTION_REGEX;
154 int32_t EDAM_SEARCH_SUGGESTIONS_MAX;
155 int32_t EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MAX;
156 int32_t EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MIN;
157};
158
159extern const LimitsConstants g_Limits_constants;
160
161}} // namespace
162
163#endif
0164
=== added file '3rdParty/evernote-sdk-cpp/src/Limits_types.cpp'
--- 3rdParty/evernote-sdk-cpp/src/Limits_types.cpp 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Limits_types.cpp 2013-11-22 21:43:19 +0000
@@ -0,0 +1,10 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#include "Limits_types.h"
7
8namespace evernote { namespace limits {
9
10}} // namespace
011
=== added file '3rdParty/evernote-sdk-cpp/src/Limits_types.h'
--- 3rdParty/evernote-sdk-cpp/src/Limits_types.h 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/Limits_types.h 2013-11-22 21:43:19 +0000
@@ -0,0 +1,20 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#ifndef Limits_TYPES_H
7#define Limits_TYPES_H
8
9#include <Thrift.h>
10#include <TApplicationException.h>
11#include <protocol/TProtocol.h>
12#include <transport/TTransport.h>
13
14
15
16namespace evernote { namespace limits {
17
18}} // namespace
19
20#endif
021
=== added file '3rdParty/evernote-sdk-cpp/src/NoteStore.cpp'
--- 3rdParty/evernote-sdk-cpp/src/NoteStore.cpp 1970-01-01 00:00:00 +0000
+++ 3rdParty/evernote-sdk-cpp/src/NoteStore.cpp 2013-11-22 21:43:19 +0000
@@ -0,0 +1,25986 @@
1/**
2 * Autogenerated by Thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 */
6#include "NoteStore.h"
7
8namespace evernote { namespace edam {
9
10uint32_t NoteStore_getSyncState_args::read(::apache::thrift::protocol::TProtocol* iprot) {
11
12 uint32_t xfer = 0;
13 std::string fname;
14 ::apache::thrift::protocol::TType ftype;
15 int16_t fid;
16
17 xfer += iprot->readStructBegin(fname);
18
19 using ::apache::thrift::protocol::TProtocolException;
20
21
22 while (true)
23 {
24 xfer += iprot->readFieldBegin(fname, ftype, fid);
25 if (ftype == ::apache::thrift::protocol::T_STOP) {
26 break;
27 }
28 switch (fid)
29 {
30 case 1:
31 if (ftype == ::apache::thrift::protocol::T_STRING) {
32 xfer += iprot->readString(this->authenticationToken);
33 this->__isset.authenticationToken = true;
34 } else {
35 xfer += iprot->skip(ftype);
36 }
37 break;
38 default:
39 xfer += iprot->skip(ftype);
40 break;
41 }
42 xfer += iprot->readFieldEnd();
43 }
44
45 xfer += iprot->readStructEnd();
46
47 return xfer;
48}
49
50uint32_t NoteStore_getSyncState_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
51 uint32_t xfer = 0;
52 xfer += oprot->writeStructBegin("NoteStore_getSyncState_args");
53 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
54 xfer += oprot->writeString(this->authenticationToken);
55 xfer += oprot->writeFieldEnd();
56 xfer += oprot->writeFieldStop();
57 xfer += oprot->writeStructEnd();
58 return xfer;
59}
60
61uint32_t NoteStore_getSyncState_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
62 uint32_t xfer = 0;
63 xfer += oprot->writeStructBegin("NoteStore_getSyncState_pargs");
64 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
65 xfer += oprot->writeString((*(this->authenticationToken)));
66 xfer += oprot->writeFieldEnd();
67 xfer += oprot->writeFieldStop();
68 xfer += oprot->writeStructEnd();
69 return xfer;
70}
71
72uint32_t NoteStore_getSyncState_result::read(::apache::thrift::protocol::TProtocol* iprot) {
73
74 uint32_t xfer = 0;
75 std::string fname;
76 ::apache::thrift::protocol::TType ftype;
77 int16_t fid;
78
79 xfer += iprot->readStructBegin(fname);
80
81 using ::apache::thrift::protocol::TProtocolException;
82
83
84 while (true)
85 {
86 xfer += iprot->readFieldBegin(fname, ftype, fid);
87 if (ftype == ::apache::thrift::protocol::T_STOP) {
88 break;
89 }
90 switch (fid)
91 {
92 case 0:
93 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
94 xfer += this->success.read(iprot);
95 this->__isset.success = true;
96 } else {
97 xfer += iprot->skip(ftype);
98 }
99 break;
100 case 1:
101 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
102 xfer += this->userException.read(iprot);
103 this->__isset.userException = true;
104 } else {
105 xfer += iprot->skip(ftype);
106 }
107 break;
108 case 2:
109 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
110 xfer += this->systemException.read(iprot);
111 this->__isset.systemException = true;
112 } else {
113 xfer += iprot->skip(ftype);
114 }
115 break;
116 default:
117 xfer += iprot->skip(ftype);
118 break;
119 }
120 xfer += iprot->readFieldEnd();
121 }
122
123 xfer += iprot->readStructEnd();
124
125 return xfer;
126}
127
128uint32_t NoteStore_getSyncState_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
129
130 uint32_t xfer = 0;
131
132 xfer += oprot->writeStructBegin("NoteStore_getSyncState_result");
133
134 if (this->__isset.success) {
135 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
136 xfer += this->success.write(oprot);
137 xfer += oprot->writeFieldEnd();
138 } else if (this->__isset.userException) {
139 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
140 xfer += this->userException.write(oprot);
141 xfer += oprot->writeFieldEnd();
142 } else if (this->__isset.systemException) {
143 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
144 xfer += this->systemException.write(oprot);
145 xfer += oprot->writeFieldEnd();
146 }
147 xfer += oprot->writeFieldStop();
148 xfer += oprot->writeStructEnd();
149 return xfer;
150}
151
152uint32_t NoteStore_getSyncState_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
153
154 uint32_t xfer = 0;
155 std::string fname;
156 ::apache::thrift::protocol::TType ftype;
157 int16_t fid;
158
159 xfer += iprot->readStructBegin(fname);
160
161 using ::apache::thrift::protocol::TProtocolException;
162
163
164 while (true)
165 {
166 xfer += iprot->readFieldBegin(fname, ftype, fid);
167 if (ftype == ::apache::thrift::protocol::T_STOP) {
168 break;
169 }
170 switch (fid)
171 {
172 case 0:
173 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
174 xfer += (*(this->success)).read(iprot);
175 this->__isset.success = true;
176 } else {
177 xfer += iprot->skip(ftype);
178 }
179 break;
180 case 1:
181 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
182 xfer += this->userException.read(iprot);
183 this->__isset.userException = true;
184 } else {
185 xfer += iprot->skip(ftype);
186 }
187 break;
188 case 2:
189 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
190 xfer += this->systemException.read(iprot);
191 this->__isset.systemException = true;
192 } else {
193 xfer += iprot->skip(ftype);
194 }
195 break;
196 default:
197 xfer += iprot->skip(ftype);
198 break;
199 }
200 xfer += iprot->readFieldEnd();
201 }
202
203 xfer += iprot->readStructEnd();
204
205 return xfer;
206}
207
208uint32_t NoteStore_getSyncStateWithMetrics_args::read(::apache::thrift::protocol::TProtocol* iprot) {
209
210 uint32_t xfer = 0;
211 std::string fname;
212 ::apache::thrift::protocol::TType ftype;
213 int16_t fid;
214
215 xfer += iprot->readStructBegin(fname);
216
217 using ::apache::thrift::protocol::TProtocolException;
218
219
220 while (true)
221 {
222 xfer += iprot->readFieldBegin(fname, ftype, fid);
223 if (ftype == ::apache::thrift::protocol::T_STOP) {
224 break;
225 }
226 switch (fid)
227 {
228 case 1:
229 if (ftype == ::apache::thrift::protocol::T_STRING) {
230 xfer += iprot->readString(this->authenticationToken);
231 this->__isset.authenticationToken = true;
232 } else {
233 xfer += iprot->skip(ftype);
234 }
235 break;
236 case 2:
237 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
238 xfer += this->clientMetrics.read(iprot);
239 this->__isset.clientMetrics = true;
240 } else {
241 xfer += iprot->skip(ftype);
242 }
243 break;
244 default:
245 xfer += iprot->skip(ftype);
246 break;
247 }
248 xfer += iprot->readFieldEnd();
249 }
250
251 xfer += iprot->readStructEnd();
252
253 return xfer;
254}
255
256uint32_t NoteStore_getSyncStateWithMetrics_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
257 uint32_t xfer = 0;
258 xfer += oprot->writeStructBegin("NoteStore_getSyncStateWithMetrics_args");
259 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
260 xfer += oprot->writeString(this->authenticationToken);
261 xfer += oprot->writeFieldEnd();
262 xfer += oprot->writeFieldBegin("clientMetrics", ::apache::thrift::protocol::T_STRUCT, 2);
263 xfer += this->clientMetrics.write(oprot);
264 xfer += oprot->writeFieldEnd();
265 xfer += oprot->writeFieldStop();
266 xfer += oprot->writeStructEnd();
267 return xfer;
268}
269
270uint32_t NoteStore_getSyncStateWithMetrics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
271 uint32_t xfer = 0;
272 xfer += oprot->writeStructBegin("NoteStore_getSyncStateWithMetrics_pargs");
273 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
274 xfer += oprot->writeString((*(this->authenticationToken)));
275 xfer += oprot->writeFieldEnd();
276 xfer += oprot->writeFieldBegin("clientMetrics", ::apache::thrift::protocol::T_STRUCT, 2);
277 xfer += (*(this->clientMetrics)).write(oprot);
278 xfer += oprot->writeFieldEnd();
279 xfer += oprot->writeFieldStop();
280 xfer += oprot->writeStructEnd();
281 return xfer;
282}
283
284uint32_t NoteStore_getSyncStateWithMetrics_result::read(::apache::thrift::protocol::TProtocol* iprot) {
285
286 uint32_t xfer = 0;
287 std::string fname;
288 ::apache::thrift::protocol::TType ftype;
289 int16_t fid;
290
291 xfer += iprot->readStructBegin(fname);
292
293 using ::apache::thrift::protocol::TProtocolException;
294
295
296 while (true)
297 {
298 xfer += iprot->readFieldBegin(fname, ftype, fid);
299 if (ftype == ::apache::thrift::protocol::T_STOP) {
300 break;
301 }
302 switch (fid)
303 {
304 case 0:
305 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
306 xfer += this->success.read(iprot);
307 this->__isset.success = true;
308 } else {
309 xfer += iprot->skip(ftype);
310 }
311 break;
312 case 1:
313 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
314 xfer += this->userException.read(iprot);
315 this->__isset.userException = true;
316 } else {
317 xfer += iprot->skip(ftype);
318 }
319 break;
320 case 2:
321 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
322 xfer += this->systemException.read(iprot);
323 this->__isset.systemException = true;
324 } else {
325 xfer += iprot->skip(ftype);
326 }
327 break;
328 default:
329 xfer += iprot->skip(ftype);
330 break;
331 }
332 xfer += iprot->readFieldEnd();
333 }
334
335 xfer += iprot->readStructEnd();
336
337 return xfer;
338}
339
340uint32_t NoteStore_getSyncStateWithMetrics_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
341
342 uint32_t xfer = 0;
343
344 xfer += oprot->writeStructBegin("NoteStore_getSyncStateWithMetrics_result");
345
346 if (this->__isset.success) {
347 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
348 xfer += this->success.write(oprot);
349 xfer += oprot->writeFieldEnd();
350 } else if (this->__isset.userException) {
351 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
352 xfer += this->userException.write(oprot);
353 xfer += oprot->writeFieldEnd();
354 } else if (this->__isset.systemException) {
355 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
356 xfer += this->systemException.write(oprot);
357 xfer += oprot->writeFieldEnd();
358 }
359 xfer += oprot->writeFieldStop();
360 xfer += oprot->writeStructEnd();
361 return xfer;
362}
363
364uint32_t NoteStore_getSyncStateWithMetrics_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
365
366 uint32_t xfer = 0;
367 std::string fname;
368 ::apache::thrift::protocol::TType ftype;
369 int16_t fid;
370
371 xfer += iprot->readStructBegin(fname);
372
373 using ::apache::thrift::protocol::TProtocolException;
374
375
376 while (true)
377 {
378 xfer += iprot->readFieldBegin(fname, ftype, fid);
379 if (ftype == ::apache::thrift::protocol::T_STOP) {
380 break;
381 }
382 switch (fid)
383 {
384 case 0:
385 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
386 xfer += (*(this->success)).read(iprot);
387 this->__isset.success = true;
388 } else {
389 xfer += iprot->skip(ftype);
390 }
391 break;
392 case 1:
393 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
394 xfer += this->userException.read(iprot);
395 this->__isset.userException = true;
396 } else {
397 xfer += iprot->skip(ftype);
398 }
399 break;
400 case 2:
401 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
402 xfer += this->systemException.read(iprot);
403 this->__isset.systemException = true;
404 } else {
405 xfer += iprot->skip(ftype);
406 }
407 break;
408 default:
409 xfer += iprot->skip(ftype);
410 break;
411 }
412 xfer += iprot->readFieldEnd();
413 }
414
415 xfer += iprot->readStructEnd();
416
417 return xfer;
418}
419
420uint32_t NoteStore_getSyncChunk_args::read(::apache::thrift::protocol::TProtocol* iprot) {
421
422 uint32_t xfer = 0;
423 std::string fname;
424 ::apache::thrift::protocol::TType ftype;
425 int16_t fid;
426
427 xfer += iprot->readStructBegin(fname);
428
429 using ::apache::thrift::protocol::TProtocolException;
430
431
432 while (true)
433 {
434 xfer += iprot->readFieldBegin(fname, ftype, fid);
435 if (ftype == ::apache::thrift::protocol::T_STOP) {
436 break;
437 }
438 switch (fid)
439 {
440 case 1:
441 if (ftype == ::apache::thrift::protocol::T_STRING) {
442 xfer += iprot->readString(this->authenticationToken);
443 this->__isset.authenticationToken = true;
444 } else {
445 xfer += iprot->skip(ftype);
446 }
447 break;
448 case 2:
449 if (ftype == ::apache::thrift::protocol::T_I32) {
450 xfer += iprot->readI32(this->afterUSN);
451 this->__isset.afterUSN = true;
452 } else {
453 xfer += iprot->skip(ftype);
454 }
455 break;
456 case 3:
457 if (ftype == ::apache::thrift::protocol::T_I32) {
458 xfer += iprot->readI32(this->maxEntries);
459 this->__isset.maxEntries = true;
460 } else {
461 xfer += iprot->skip(ftype);
462 }
463 break;
464 case 4:
465 if (ftype == ::apache::thrift::protocol::T_BOOL) {
466 xfer += iprot->readBool(this->fullSyncOnly);
467 this->__isset.fullSyncOnly = true;
468 } else {
469 xfer += iprot->skip(ftype);
470 }
471 break;
472 default:
473 xfer += iprot->skip(ftype);
474 break;
475 }
476 xfer += iprot->readFieldEnd();
477 }
478
479 xfer += iprot->readStructEnd();
480
481 return xfer;
482}
483
484uint32_t NoteStore_getSyncChunk_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
485 uint32_t xfer = 0;
486 xfer += oprot->writeStructBegin("NoteStore_getSyncChunk_args");
487 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
488 xfer += oprot->writeString(this->authenticationToken);
489 xfer += oprot->writeFieldEnd();
490 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 2);
491 xfer += oprot->writeI32(this->afterUSN);
492 xfer += oprot->writeFieldEnd();
493 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 3);
494 xfer += oprot->writeI32(this->maxEntries);
495 xfer += oprot->writeFieldEnd();
496 xfer += oprot->writeFieldBegin("fullSyncOnly", ::apache::thrift::protocol::T_BOOL, 4);
497 xfer += oprot->writeBool(this->fullSyncOnly);
498 xfer += oprot->writeFieldEnd();
499 xfer += oprot->writeFieldStop();
500 xfer += oprot->writeStructEnd();
501 return xfer;
502}
503
504uint32_t NoteStore_getSyncChunk_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
505 uint32_t xfer = 0;
506 xfer += oprot->writeStructBegin("NoteStore_getSyncChunk_pargs");
507 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
508 xfer += oprot->writeString((*(this->authenticationToken)));
509 xfer += oprot->writeFieldEnd();
510 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 2);
511 xfer += oprot->writeI32((*(this->afterUSN)));
512 xfer += oprot->writeFieldEnd();
513 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 3);
514 xfer += oprot->writeI32((*(this->maxEntries)));
515 xfer += oprot->writeFieldEnd();
516 xfer += oprot->writeFieldBegin("fullSyncOnly", ::apache::thrift::protocol::T_BOOL, 4);
517 xfer += oprot->writeBool((*(this->fullSyncOnly)));
518 xfer += oprot->writeFieldEnd();
519 xfer += oprot->writeFieldStop();
520 xfer += oprot->writeStructEnd();
521 return xfer;
522}
523
524uint32_t NoteStore_getSyncChunk_result::read(::apache::thrift::protocol::TProtocol* iprot) {
525
526 uint32_t xfer = 0;
527 std::string fname;
528 ::apache::thrift::protocol::TType ftype;
529 int16_t fid;
530
531 xfer += iprot->readStructBegin(fname);
532
533 using ::apache::thrift::protocol::TProtocolException;
534
535
536 while (true)
537 {
538 xfer += iprot->readFieldBegin(fname, ftype, fid);
539 if (ftype == ::apache::thrift::protocol::T_STOP) {
540 break;
541 }
542 switch (fid)
543 {
544 case 0:
545 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
546 xfer += this->success.read(iprot);
547 this->__isset.success = true;
548 } else {
549 xfer += iprot->skip(ftype);
550 }
551 break;
552 case 1:
553 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
554 xfer += this->userException.read(iprot);
555 this->__isset.userException = true;
556 } else {
557 xfer += iprot->skip(ftype);
558 }
559 break;
560 case 2:
561 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
562 xfer += this->systemException.read(iprot);
563 this->__isset.systemException = true;
564 } else {
565 xfer += iprot->skip(ftype);
566 }
567 break;
568 default:
569 xfer += iprot->skip(ftype);
570 break;
571 }
572 xfer += iprot->readFieldEnd();
573 }
574
575 xfer += iprot->readStructEnd();
576
577 return xfer;
578}
579
580uint32_t NoteStore_getSyncChunk_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
581
582 uint32_t xfer = 0;
583
584 xfer += oprot->writeStructBegin("NoteStore_getSyncChunk_result");
585
586 if (this->__isset.success) {
587 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
588 xfer += this->success.write(oprot);
589 xfer += oprot->writeFieldEnd();
590 } else if (this->__isset.userException) {
591 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
592 xfer += this->userException.write(oprot);
593 xfer += oprot->writeFieldEnd();
594 } else if (this->__isset.systemException) {
595 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
596 xfer += this->systemException.write(oprot);
597 xfer += oprot->writeFieldEnd();
598 }
599 xfer += oprot->writeFieldStop();
600 xfer += oprot->writeStructEnd();
601 return xfer;
602}
603
604uint32_t NoteStore_getSyncChunk_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
605
606 uint32_t xfer = 0;
607 std::string fname;
608 ::apache::thrift::protocol::TType ftype;
609 int16_t fid;
610
611 xfer += iprot->readStructBegin(fname);
612
613 using ::apache::thrift::protocol::TProtocolException;
614
615
616 while (true)
617 {
618 xfer += iprot->readFieldBegin(fname, ftype, fid);
619 if (ftype == ::apache::thrift::protocol::T_STOP) {
620 break;
621 }
622 switch (fid)
623 {
624 case 0:
625 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
626 xfer += (*(this->success)).read(iprot);
627 this->__isset.success = true;
628 } else {
629 xfer += iprot->skip(ftype);
630 }
631 break;
632 case 1:
633 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
634 xfer += this->userException.read(iprot);
635 this->__isset.userException = true;
636 } else {
637 xfer += iprot->skip(ftype);
638 }
639 break;
640 case 2:
641 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
642 xfer += this->systemException.read(iprot);
643 this->__isset.systemException = true;
644 } else {
645 xfer += iprot->skip(ftype);
646 }
647 break;
648 default:
649 xfer += iprot->skip(ftype);
650 break;
651 }
652 xfer += iprot->readFieldEnd();
653 }
654
655 xfer += iprot->readStructEnd();
656
657 return xfer;
658}
659
660uint32_t NoteStore_getFilteredSyncChunk_args::read(::apache::thrift::protocol::TProtocol* iprot) {
661
662 uint32_t xfer = 0;
663 std::string fname;
664 ::apache::thrift::protocol::TType ftype;
665 int16_t fid;
666
667 xfer += iprot->readStructBegin(fname);
668
669 using ::apache::thrift::protocol::TProtocolException;
670
671
672 while (true)
673 {
674 xfer += iprot->readFieldBegin(fname, ftype, fid);
675 if (ftype == ::apache::thrift::protocol::T_STOP) {
676 break;
677 }
678 switch (fid)
679 {
680 case 1:
681 if (ftype == ::apache::thrift::protocol::T_STRING) {
682 xfer += iprot->readString(this->authenticationToken);
683 this->__isset.authenticationToken = true;
684 } else {
685 xfer += iprot->skip(ftype);
686 }
687 break;
688 case 2:
689 if (ftype == ::apache::thrift::protocol::T_I32) {
690 xfer += iprot->readI32(this->afterUSN);
691 this->__isset.afterUSN = true;
692 } else {
693 xfer += iprot->skip(ftype);
694 }
695 break;
696 case 3:
697 if (ftype == ::apache::thrift::protocol::T_I32) {
698 xfer += iprot->readI32(this->maxEntries);
699 this->__isset.maxEntries = true;
700 } else {
701 xfer += iprot->skip(ftype);
702 }
703 break;
704 case 4:
705 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
706 xfer += this->filter.read(iprot);
707 this->__isset.filter = true;
708 } else {
709 xfer += iprot->skip(ftype);
710 }
711 break;
712 default:
713 xfer += iprot->skip(ftype);
714 break;
715 }
716 xfer += iprot->readFieldEnd();
717 }
718
719 xfer += iprot->readStructEnd();
720
721 return xfer;
722}
723
724uint32_t NoteStore_getFilteredSyncChunk_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
725 uint32_t xfer = 0;
726 xfer += oprot->writeStructBegin("NoteStore_getFilteredSyncChunk_args");
727 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
728 xfer += oprot->writeString(this->authenticationToken);
729 xfer += oprot->writeFieldEnd();
730 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 2);
731 xfer += oprot->writeI32(this->afterUSN);
732 xfer += oprot->writeFieldEnd();
733 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 3);
734 xfer += oprot->writeI32(this->maxEntries);
735 xfer += oprot->writeFieldEnd();
736 xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRUCT, 4);
737 xfer += this->filter.write(oprot);
738 xfer += oprot->writeFieldEnd();
739 xfer += oprot->writeFieldStop();
740 xfer += oprot->writeStructEnd();
741 return xfer;
742}
743
744uint32_t NoteStore_getFilteredSyncChunk_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
745 uint32_t xfer = 0;
746 xfer += oprot->writeStructBegin("NoteStore_getFilteredSyncChunk_pargs");
747 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
748 xfer += oprot->writeString((*(this->authenticationToken)));
749 xfer += oprot->writeFieldEnd();
750 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 2);
751 xfer += oprot->writeI32((*(this->afterUSN)));
752 xfer += oprot->writeFieldEnd();
753 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 3);
754 xfer += oprot->writeI32((*(this->maxEntries)));
755 xfer += oprot->writeFieldEnd();
756 xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRUCT, 4);
757 xfer += (*(this->filter)).write(oprot);
758 xfer += oprot->writeFieldEnd();
759 xfer += oprot->writeFieldStop();
760 xfer += oprot->writeStructEnd();
761 return xfer;
762}
763
764uint32_t NoteStore_getFilteredSyncChunk_result::read(::apache::thrift::protocol::TProtocol* iprot) {
765
766 uint32_t xfer = 0;
767 std::string fname;
768 ::apache::thrift::protocol::TType ftype;
769 int16_t fid;
770
771 xfer += iprot->readStructBegin(fname);
772
773 using ::apache::thrift::protocol::TProtocolException;
774
775
776 while (true)
777 {
778 xfer += iprot->readFieldBegin(fname, ftype, fid);
779 if (ftype == ::apache::thrift::protocol::T_STOP) {
780 break;
781 }
782 switch (fid)
783 {
784 case 0:
785 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
786 xfer += this->success.read(iprot);
787 this->__isset.success = true;
788 } else {
789 xfer += iprot->skip(ftype);
790 }
791 break;
792 case 1:
793 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
794 xfer += this->userException.read(iprot);
795 this->__isset.userException = true;
796 } else {
797 xfer += iprot->skip(ftype);
798 }
799 break;
800 case 2:
801 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
802 xfer += this->systemException.read(iprot);
803 this->__isset.systemException = true;
804 } else {
805 xfer += iprot->skip(ftype);
806 }
807 break;
808 default:
809 xfer += iprot->skip(ftype);
810 break;
811 }
812 xfer += iprot->readFieldEnd();
813 }
814
815 xfer += iprot->readStructEnd();
816
817 return xfer;
818}
819
820uint32_t NoteStore_getFilteredSyncChunk_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
821
822 uint32_t xfer = 0;
823
824 xfer += oprot->writeStructBegin("NoteStore_getFilteredSyncChunk_result");
825
826 if (this->__isset.success) {
827 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
828 xfer += this->success.write(oprot);
829 xfer += oprot->writeFieldEnd();
830 } else if (this->__isset.userException) {
831 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
832 xfer += this->userException.write(oprot);
833 xfer += oprot->writeFieldEnd();
834 } else if (this->__isset.systemException) {
835 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
836 xfer += this->systemException.write(oprot);
837 xfer += oprot->writeFieldEnd();
838 }
839 xfer += oprot->writeFieldStop();
840 xfer += oprot->writeStructEnd();
841 return xfer;
842}
843
844uint32_t NoteStore_getFilteredSyncChunk_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
845
846 uint32_t xfer = 0;
847 std::string fname;
848 ::apache::thrift::protocol::TType ftype;
849 int16_t fid;
850
851 xfer += iprot->readStructBegin(fname);
852
853 using ::apache::thrift::protocol::TProtocolException;
854
855
856 while (true)
857 {
858 xfer += iprot->readFieldBegin(fname, ftype, fid);
859 if (ftype == ::apache::thrift::protocol::T_STOP) {
860 break;
861 }
862 switch (fid)
863 {
864 case 0:
865 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
866 xfer += (*(this->success)).read(iprot);
867 this->__isset.success = true;
868 } else {
869 xfer += iprot->skip(ftype);
870 }
871 break;
872 case 1:
873 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
874 xfer += this->userException.read(iprot);
875 this->__isset.userException = true;
876 } else {
877 xfer += iprot->skip(ftype);
878 }
879 break;
880 case 2:
881 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
882 xfer += this->systemException.read(iprot);
883 this->__isset.systemException = true;
884 } else {
885 xfer += iprot->skip(ftype);
886 }
887 break;
888 default:
889 xfer += iprot->skip(ftype);
890 break;
891 }
892 xfer += iprot->readFieldEnd();
893 }
894
895 xfer += iprot->readStructEnd();
896
897 return xfer;
898}
899
900uint32_t NoteStore_getLinkedNotebookSyncState_args::read(::apache::thrift::protocol::TProtocol* iprot) {
901
902 uint32_t xfer = 0;
903 std::string fname;
904 ::apache::thrift::protocol::TType ftype;
905 int16_t fid;
906
907 xfer += iprot->readStructBegin(fname);
908
909 using ::apache::thrift::protocol::TProtocolException;
910
911
912 while (true)
913 {
914 xfer += iprot->readFieldBegin(fname, ftype, fid);
915 if (ftype == ::apache::thrift::protocol::T_STOP) {
916 break;
917 }
918 switch (fid)
919 {
920 case 1:
921 if (ftype == ::apache::thrift::protocol::T_STRING) {
922 xfer += iprot->readString(this->authenticationToken);
923 this->__isset.authenticationToken = true;
924 } else {
925 xfer += iprot->skip(ftype);
926 }
927 break;
928 case 2:
929 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
930 xfer += this->linkedNotebook.read(iprot);
931 this->__isset.linkedNotebook = true;
932 } else {
933 xfer += iprot->skip(ftype);
934 }
935 break;
936 default:
937 xfer += iprot->skip(ftype);
938 break;
939 }
940 xfer += iprot->readFieldEnd();
941 }
942
943 xfer += iprot->readStructEnd();
944
945 return xfer;
946}
947
948uint32_t NoteStore_getLinkedNotebookSyncState_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
949 uint32_t xfer = 0;
950 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncState_args");
951 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
952 xfer += oprot->writeString(this->authenticationToken);
953 xfer += oprot->writeFieldEnd();
954 xfer += oprot->writeFieldBegin("linkedNotebook", ::apache::thrift::protocol::T_STRUCT, 2);
955 xfer += this->linkedNotebook.write(oprot);
956 xfer += oprot->writeFieldEnd();
957 xfer += oprot->writeFieldStop();
958 xfer += oprot->writeStructEnd();
959 return xfer;
960}
961
962uint32_t NoteStore_getLinkedNotebookSyncState_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
963 uint32_t xfer = 0;
964 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncState_pargs");
965 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
966 xfer += oprot->writeString((*(this->authenticationToken)));
967 xfer += oprot->writeFieldEnd();
968 xfer += oprot->writeFieldBegin("linkedNotebook", ::apache::thrift::protocol::T_STRUCT, 2);
969 xfer += (*(this->linkedNotebook)).write(oprot);
970 xfer += oprot->writeFieldEnd();
971 xfer += oprot->writeFieldStop();
972 xfer += oprot->writeStructEnd();
973 return xfer;
974}
975
976uint32_t NoteStore_getLinkedNotebookSyncState_result::read(::apache::thrift::protocol::TProtocol* iprot) {
977
978 uint32_t xfer = 0;
979 std::string fname;
980 ::apache::thrift::protocol::TType ftype;
981 int16_t fid;
982
983 xfer += iprot->readStructBegin(fname);
984
985 using ::apache::thrift::protocol::TProtocolException;
986
987
988 while (true)
989 {
990 xfer += iprot->readFieldBegin(fname, ftype, fid);
991 if (ftype == ::apache::thrift::protocol::T_STOP) {
992 break;
993 }
994 switch (fid)
995 {
996 case 0:
997 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
998 xfer += this->success.read(iprot);
999 this->__isset.success = true;
1000 } else {
1001 xfer += iprot->skip(ftype);
1002 }
1003 break;
1004 case 1:
1005 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1006 xfer += this->userException.read(iprot);
1007 this->__isset.userException = true;
1008 } else {
1009 xfer += iprot->skip(ftype);
1010 }
1011 break;
1012 case 2:
1013 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1014 xfer += this->systemException.read(iprot);
1015 this->__isset.systemException = true;
1016 } else {
1017 xfer += iprot->skip(ftype);
1018 }
1019 break;
1020 case 3:
1021 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1022 xfer += this->notFoundException.read(iprot);
1023 this->__isset.notFoundException = true;
1024 } else {
1025 xfer += iprot->skip(ftype);
1026 }
1027 break;
1028 default:
1029 xfer += iprot->skip(ftype);
1030 break;
1031 }
1032 xfer += iprot->readFieldEnd();
1033 }
1034
1035 xfer += iprot->readStructEnd();
1036
1037 return xfer;
1038}
1039
1040uint32_t NoteStore_getLinkedNotebookSyncState_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1041
1042 uint32_t xfer = 0;
1043
1044 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncState_result");
1045
1046 if (this->__isset.success) {
1047 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
1048 xfer += this->success.write(oprot);
1049 xfer += oprot->writeFieldEnd();
1050 } else if (this->__isset.userException) {
1051 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
1052 xfer += this->userException.write(oprot);
1053 xfer += oprot->writeFieldEnd();
1054 } else if (this->__isset.systemException) {
1055 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
1056 xfer += this->systemException.write(oprot);
1057 xfer += oprot->writeFieldEnd();
1058 } else if (this->__isset.notFoundException) {
1059 xfer += oprot->writeFieldBegin("notFoundException", ::apache::thrift::protocol::T_STRUCT, 3);
1060 xfer += this->notFoundException.write(oprot);
1061 xfer += oprot->writeFieldEnd();
1062 }
1063 xfer += oprot->writeFieldStop();
1064 xfer += oprot->writeStructEnd();
1065 return xfer;
1066}
1067
1068uint32_t NoteStore_getLinkedNotebookSyncState_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1069
1070 uint32_t xfer = 0;
1071 std::string fname;
1072 ::apache::thrift::protocol::TType ftype;
1073 int16_t fid;
1074
1075 xfer += iprot->readStructBegin(fname);
1076
1077 using ::apache::thrift::protocol::TProtocolException;
1078
1079
1080 while (true)
1081 {
1082 xfer += iprot->readFieldBegin(fname, ftype, fid);
1083 if (ftype == ::apache::thrift::protocol::T_STOP) {
1084 break;
1085 }
1086 switch (fid)
1087 {
1088 case 0:
1089 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1090 xfer += (*(this->success)).read(iprot);
1091 this->__isset.success = true;
1092 } else {
1093 xfer += iprot->skip(ftype);
1094 }
1095 break;
1096 case 1:
1097 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1098 xfer += this->userException.read(iprot);
1099 this->__isset.userException = true;
1100 } else {
1101 xfer += iprot->skip(ftype);
1102 }
1103 break;
1104 case 2:
1105 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1106 xfer += this->systemException.read(iprot);
1107 this->__isset.systemException = true;
1108 } else {
1109 xfer += iprot->skip(ftype);
1110 }
1111 break;
1112 case 3:
1113 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1114 xfer += this->notFoundException.read(iprot);
1115 this->__isset.notFoundException = true;
1116 } else {
1117 xfer += iprot->skip(ftype);
1118 }
1119 break;
1120 default:
1121 xfer += iprot->skip(ftype);
1122 break;
1123 }
1124 xfer += iprot->readFieldEnd();
1125 }
1126
1127 xfer += iprot->readStructEnd();
1128
1129 return xfer;
1130}
1131
1132uint32_t NoteStore_getLinkedNotebookSyncChunk_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1133
1134 uint32_t xfer = 0;
1135 std::string fname;
1136 ::apache::thrift::protocol::TType ftype;
1137 int16_t fid;
1138
1139 xfer += iprot->readStructBegin(fname);
1140
1141 using ::apache::thrift::protocol::TProtocolException;
1142
1143
1144 while (true)
1145 {
1146 xfer += iprot->readFieldBegin(fname, ftype, fid);
1147 if (ftype == ::apache::thrift::protocol::T_STOP) {
1148 break;
1149 }
1150 switch (fid)
1151 {
1152 case 1:
1153 if (ftype == ::apache::thrift::protocol::T_STRING) {
1154 xfer += iprot->readString(this->authenticationToken);
1155 this->__isset.authenticationToken = true;
1156 } else {
1157 xfer += iprot->skip(ftype);
1158 }
1159 break;
1160 case 2:
1161 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1162 xfer += this->linkedNotebook.read(iprot);
1163 this->__isset.linkedNotebook = true;
1164 } else {
1165 xfer += iprot->skip(ftype);
1166 }
1167 break;
1168 case 3:
1169 if (ftype == ::apache::thrift::protocol::T_I32) {
1170 xfer += iprot->readI32(this->afterUSN);
1171 this->__isset.afterUSN = true;
1172 } else {
1173 xfer += iprot->skip(ftype);
1174 }
1175 break;
1176 case 4:
1177 if (ftype == ::apache::thrift::protocol::T_I32) {
1178 xfer += iprot->readI32(this->maxEntries);
1179 this->__isset.maxEntries = true;
1180 } else {
1181 xfer += iprot->skip(ftype);
1182 }
1183 break;
1184 case 5:
1185 if (ftype == ::apache::thrift::protocol::T_BOOL) {
1186 xfer += iprot->readBool(this->fullSyncOnly);
1187 this->__isset.fullSyncOnly = true;
1188 } else {
1189 xfer += iprot->skip(ftype);
1190 }
1191 break;
1192 default:
1193 xfer += iprot->skip(ftype);
1194 break;
1195 }
1196 xfer += iprot->readFieldEnd();
1197 }
1198
1199 xfer += iprot->readStructEnd();
1200
1201 return xfer;
1202}
1203
1204uint32_t NoteStore_getLinkedNotebookSyncChunk_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1205 uint32_t xfer = 0;
1206 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncChunk_args");
1207 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1208 xfer += oprot->writeString(this->authenticationToken);
1209 xfer += oprot->writeFieldEnd();
1210 xfer += oprot->writeFieldBegin("linkedNotebook", ::apache::thrift::protocol::T_STRUCT, 2);
1211 xfer += this->linkedNotebook.write(oprot);
1212 xfer += oprot->writeFieldEnd();
1213 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 3);
1214 xfer += oprot->writeI32(this->afterUSN);
1215 xfer += oprot->writeFieldEnd();
1216 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 4);
1217 xfer += oprot->writeI32(this->maxEntries);
1218 xfer += oprot->writeFieldEnd();
1219 xfer += oprot->writeFieldBegin("fullSyncOnly", ::apache::thrift::protocol::T_BOOL, 5);
1220 xfer += oprot->writeBool(this->fullSyncOnly);
1221 xfer += oprot->writeFieldEnd();
1222 xfer += oprot->writeFieldStop();
1223 xfer += oprot->writeStructEnd();
1224 return xfer;
1225}
1226
1227uint32_t NoteStore_getLinkedNotebookSyncChunk_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1228 uint32_t xfer = 0;
1229 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncChunk_pargs");
1230 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1231 xfer += oprot->writeString((*(this->authenticationToken)));
1232 xfer += oprot->writeFieldEnd();
1233 xfer += oprot->writeFieldBegin("linkedNotebook", ::apache::thrift::protocol::T_STRUCT, 2);
1234 xfer += (*(this->linkedNotebook)).write(oprot);
1235 xfer += oprot->writeFieldEnd();
1236 xfer += oprot->writeFieldBegin("afterUSN", ::apache::thrift::protocol::T_I32, 3);
1237 xfer += oprot->writeI32((*(this->afterUSN)));
1238 xfer += oprot->writeFieldEnd();
1239 xfer += oprot->writeFieldBegin("maxEntries", ::apache::thrift::protocol::T_I32, 4);
1240 xfer += oprot->writeI32((*(this->maxEntries)));
1241 xfer += oprot->writeFieldEnd();
1242 xfer += oprot->writeFieldBegin("fullSyncOnly", ::apache::thrift::protocol::T_BOOL, 5);
1243 xfer += oprot->writeBool((*(this->fullSyncOnly)));
1244 xfer += oprot->writeFieldEnd();
1245 xfer += oprot->writeFieldStop();
1246 xfer += oprot->writeStructEnd();
1247 return xfer;
1248}
1249
1250uint32_t NoteStore_getLinkedNotebookSyncChunk_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1251
1252 uint32_t xfer = 0;
1253 std::string fname;
1254 ::apache::thrift::protocol::TType ftype;
1255 int16_t fid;
1256
1257 xfer += iprot->readStructBegin(fname);
1258
1259 using ::apache::thrift::protocol::TProtocolException;
1260
1261
1262 while (true)
1263 {
1264 xfer += iprot->readFieldBegin(fname, ftype, fid);
1265 if (ftype == ::apache::thrift::protocol::T_STOP) {
1266 break;
1267 }
1268 switch (fid)
1269 {
1270 case 0:
1271 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1272 xfer += this->success.read(iprot);
1273 this->__isset.success = true;
1274 } else {
1275 xfer += iprot->skip(ftype);
1276 }
1277 break;
1278 case 1:
1279 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1280 xfer += this->userException.read(iprot);
1281 this->__isset.userException = true;
1282 } else {
1283 xfer += iprot->skip(ftype);
1284 }
1285 break;
1286 case 2:
1287 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1288 xfer += this->systemException.read(iprot);
1289 this->__isset.systemException = true;
1290 } else {
1291 xfer += iprot->skip(ftype);
1292 }
1293 break;
1294 case 3:
1295 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1296 xfer += this->notFoundException.read(iprot);
1297 this->__isset.notFoundException = true;
1298 } else {
1299 xfer += iprot->skip(ftype);
1300 }
1301 break;
1302 default:
1303 xfer += iprot->skip(ftype);
1304 break;
1305 }
1306 xfer += iprot->readFieldEnd();
1307 }
1308
1309 xfer += iprot->readStructEnd();
1310
1311 return xfer;
1312}
1313
1314uint32_t NoteStore_getLinkedNotebookSyncChunk_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1315
1316 uint32_t xfer = 0;
1317
1318 xfer += oprot->writeStructBegin("NoteStore_getLinkedNotebookSyncChunk_result");
1319
1320 if (this->__isset.success) {
1321 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
1322 xfer += this->success.write(oprot);
1323 xfer += oprot->writeFieldEnd();
1324 } else if (this->__isset.userException) {
1325 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
1326 xfer += this->userException.write(oprot);
1327 xfer += oprot->writeFieldEnd();
1328 } else if (this->__isset.systemException) {
1329 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
1330 xfer += this->systemException.write(oprot);
1331 xfer += oprot->writeFieldEnd();
1332 } else if (this->__isset.notFoundException) {
1333 xfer += oprot->writeFieldBegin("notFoundException", ::apache::thrift::protocol::T_STRUCT, 3);
1334 xfer += this->notFoundException.write(oprot);
1335 xfer += oprot->writeFieldEnd();
1336 }
1337 xfer += oprot->writeFieldStop();
1338 xfer += oprot->writeStructEnd();
1339 return xfer;
1340}
1341
1342uint32_t NoteStore_getLinkedNotebookSyncChunk_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1343
1344 uint32_t xfer = 0;
1345 std::string fname;
1346 ::apache::thrift::protocol::TType ftype;
1347 int16_t fid;
1348
1349 xfer += iprot->readStructBegin(fname);
1350
1351 using ::apache::thrift::protocol::TProtocolException;
1352
1353
1354 while (true)
1355 {
1356 xfer += iprot->readFieldBegin(fname, ftype, fid);
1357 if (ftype == ::apache::thrift::protocol::T_STOP) {
1358 break;
1359 }
1360 switch (fid)
1361 {
1362 case 0:
1363 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1364 xfer += (*(this->success)).read(iprot);
1365 this->__isset.success = true;
1366 } else {
1367 xfer += iprot->skip(ftype);
1368 }
1369 break;
1370 case 1:
1371 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1372 xfer += this->userException.read(iprot);
1373 this->__isset.userException = true;
1374 } else {
1375 xfer += iprot->skip(ftype);
1376 }
1377 break;
1378 case 2:
1379 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1380 xfer += this->systemException.read(iprot);
1381 this->__isset.systemException = true;
1382 } else {
1383 xfer += iprot->skip(ftype);
1384 }
1385 break;
1386 case 3:
1387 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1388 xfer += this->notFoundException.read(iprot);
1389 this->__isset.notFoundException = true;
1390 } else {
1391 xfer += iprot->skip(ftype);
1392 }
1393 break;
1394 default:
1395 xfer += iprot->skip(ftype);
1396 break;
1397 }
1398 xfer += iprot->readFieldEnd();
1399 }
1400
1401 xfer += iprot->readStructEnd();
1402
1403 return xfer;
1404}
1405
1406uint32_t NoteStore_listNotebooks_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1407
1408 uint32_t xfer = 0;
1409 std::string fname;
1410 ::apache::thrift::protocol::TType ftype;
1411 int16_t fid;
1412
1413 xfer += iprot->readStructBegin(fname);
1414
1415 using ::apache::thrift::protocol::TProtocolException;
1416
1417
1418 while (true)
1419 {
1420 xfer += iprot->readFieldBegin(fname, ftype, fid);
1421 if (ftype == ::apache::thrift::protocol::T_STOP) {
1422 break;
1423 }
1424 switch (fid)
1425 {
1426 case 1:
1427 if (ftype == ::apache::thrift::protocol::T_STRING) {
1428 xfer += iprot->readString(this->authenticationToken);
1429 this->__isset.authenticationToken = true;
1430 } else {
1431 xfer += iprot->skip(ftype);
1432 }
1433 break;
1434 default:
1435 xfer += iprot->skip(ftype);
1436 break;
1437 }
1438 xfer += iprot->readFieldEnd();
1439 }
1440
1441 xfer += iprot->readStructEnd();
1442
1443 return xfer;
1444}
1445
1446uint32_t NoteStore_listNotebooks_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1447 uint32_t xfer = 0;
1448 xfer += oprot->writeStructBegin("NoteStore_listNotebooks_args");
1449 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1450 xfer += oprot->writeString(this->authenticationToken);
1451 xfer += oprot->writeFieldEnd();
1452 xfer += oprot->writeFieldStop();
1453 xfer += oprot->writeStructEnd();
1454 return xfer;
1455}
1456
1457uint32_t NoteStore_listNotebooks_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1458 uint32_t xfer = 0;
1459 xfer += oprot->writeStructBegin("NoteStore_listNotebooks_pargs");
1460 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1461 xfer += oprot->writeString((*(this->authenticationToken)));
1462 xfer += oprot->writeFieldEnd();
1463 xfer += oprot->writeFieldStop();
1464 xfer += oprot->writeStructEnd();
1465 return xfer;
1466}
1467
1468uint32_t NoteStore_listNotebooks_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1469
1470 uint32_t xfer = 0;
1471 std::string fname;
1472 ::apache::thrift::protocol::TType ftype;
1473 int16_t fid;
1474
1475 xfer += iprot->readStructBegin(fname);
1476
1477 using ::apache::thrift::protocol::TProtocolException;
1478
1479
1480 while (true)
1481 {
1482 xfer += iprot->readFieldBegin(fname, ftype, fid);
1483 if (ftype == ::apache::thrift::protocol::T_STOP) {
1484 break;
1485 }
1486 switch (fid)
1487 {
1488 case 0:
1489 if (ftype == ::apache::thrift::protocol::T_LIST) {
1490 {
1491 this->success.clear();
1492 uint32_t _size166;
1493 ::apache::thrift::protocol::TType _etype169;
1494 iprot->readListBegin(_etype169, _size166);
1495 this->success.resize(_size166);
1496 uint32_t _i170;
1497 for (_i170 = 0; _i170 < _size166; ++_i170)
1498 {
1499 xfer += this->success[_i170].read(iprot);
1500 }
1501 iprot->readListEnd();
1502 }
1503 this->__isset.success = true;
1504 } else {
1505 xfer += iprot->skip(ftype);
1506 }
1507 break;
1508 case 1:
1509 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1510 xfer += this->userException.read(iprot);
1511 this->__isset.userException = true;
1512 } else {
1513 xfer += iprot->skip(ftype);
1514 }
1515 break;
1516 case 2:
1517 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1518 xfer += this->systemException.read(iprot);
1519 this->__isset.systemException = true;
1520 } else {
1521 xfer += iprot->skip(ftype);
1522 }
1523 break;
1524 default:
1525 xfer += iprot->skip(ftype);
1526 break;
1527 }
1528 xfer += iprot->readFieldEnd();
1529 }
1530
1531 xfer += iprot->readStructEnd();
1532
1533 return xfer;
1534}
1535
1536uint32_t NoteStore_listNotebooks_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1537
1538 uint32_t xfer = 0;
1539
1540 xfer += oprot->writeStructBegin("NoteStore_listNotebooks_result");
1541
1542 if (this->__isset.success) {
1543 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
1544 {
1545 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
1546 std::vector<evernote::edam::Notebook> ::const_iterator _iter171;
1547 for (_iter171 = this->success.begin(); _iter171 != this->success.end(); ++_iter171)
1548 {
1549 xfer += (*_iter171).write(oprot);
1550 }
1551 xfer += oprot->writeListEnd();
1552 }
1553 xfer += oprot->writeFieldEnd();
1554 } else if (this->__isset.userException) {
1555 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
1556 xfer += this->userException.write(oprot);
1557 xfer += oprot->writeFieldEnd();
1558 } else if (this->__isset.systemException) {
1559 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
1560 xfer += this->systemException.write(oprot);
1561 xfer += oprot->writeFieldEnd();
1562 }
1563 xfer += oprot->writeFieldStop();
1564 xfer += oprot->writeStructEnd();
1565 return xfer;
1566}
1567
1568uint32_t NoteStore_listNotebooks_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1569
1570 uint32_t xfer = 0;
1571 std::string fname;
1572 ::apache::thrift::protocol::TType ftype;
1573 int16_t fid;
1574
1575 xfer += iprot->readStructBegin(fname);
1576
1577 using ::apache::thrift::protocol::TProtocolException;
1578
1579
1580 while (true)
1581 {
1582 xfer += iprot->readFieldBegin(fname, ftype, fid);
1583 if (ftype == ::apache::thrift::protocol::T_STOP) {
1584 break;
1585 }
1586 switch (fid)
1587 {
1588 case 0:
1589 if (ftype == ::apache::thrift::protocol::T_LIST) {
1590 {
1591 (*(this->success)).clear();
1592 uint32_t _size172;
1593 ::apache::thrift::protocol::TType _etype175;
1594 iprot->readListBegin(_etype175, _size172);
1595 (*(this->success)).resize(_size172);
1596 uint32_t _i176;
1597 for (_i176 = 0; _i176 < _size172; ++_i176)
1598 {
1599 xfer += (*(this->success))[_i176].read(iprot);
1600 }
1601 iprot->readListEnd();
1602 }
1603 this->__isset.success = true;
1604 } else {
1605 xfer += iprot->skip(ftype);
1606 }
1607 break;
1608 case 1:
1609 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1610 xfer += this->userException.read(iprot);
1611 this->__isset.userException = true;
1612 } else {
1613 xfer += iprot->skip(ftype);
1614 }
1615 break;
1616 case 2:
1617 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1618 xfer += this->systemException.read(iprot);
1619 this->__isset.systemException = true;
1620 } else {
1621 xfer += iprot->skip(ftype);
1622 }
1623 break;
1624 default:
1625 xfer += iprot->skip(ftype);
1626 break;
1627 }
1628 xfer += iprot->readFieldEnd();
1629 }
1630
1631 xfer += iprot->readStructEnd();
1632
1633 return xfer;
1634}
1635
1636uint32_t NoteStore_getNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1637
1638 uint32_t xfer = 0;
1639 std::string fname;
1640 ::apache::thrift::protocol::TType ftype;
1641 int16_t fid;
1642
1643 xfer += iprot->readStructBegin(fname);
1644
1645 using ::apache::thrift::protocol::TProtocolException;
1646
1647
1648 while (true)
1649 {
1650 xfer += iprot->readFieldBegin(fname, ftype, fid);
1651 if (ftype == ::apache::thrift::protocol::T_STOP) {
1652 break;
1653 }
1654 switch (fid)
1655 {
1656 case 1:
1657 if (ftype == ::apache::thrift::protocol::T_STRING) {
1658 xfer += iprot->readString(this->authenticationToken);
1659 this->__isset.authenticationToken = true;
1660 } else {
1661 xfer += iprot->skip(ftype);
1662 }
1663 break;
1664 case 2:
1665 if (ftype == ::apache::thrift::protocol::T_STRING) {
1666 xfer += iprot->readString(this->guid);
1667 this->__isset.guid = true;
1668 } else {
1669 xfer += iprot->skip(ftype);
1670 }
1671 break;
1672 default:
1673 xfer += iprot->skip(ftype);
1674 break;
1675 }
1676 xfer += iprot->readFieldEnd();
1677 }
1678
1679 xfer += iprot->readStructEnd();
1680
1681 return xfer;
1682}
1683
1684uint32_t NoteStore_getNotebook_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1685 uint32_t xfer = 0;
1686 xfer += oprot->writeStructBegin("NoteStore_getNotebook_args");
1687 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1688 xfer += oprot->writeString(this->authenticationToken);
1689 xfer += oprot->writeFieldEnd();
1690 xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 2);
1691 xfer += oprot->writeString(this->guid);
1692 xfer += oprot->writeFieldEnd();
1693 xfer += oprot->writeFieldStop();
1694 xfer += oprot->writeStructEnd();
1695 return xfer;
1696}
1697
1698uint32_t NoteStore_getNotebook_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1699 uint32_t xfer = 0;
1700 xfer += oprot->writeStructBegin("NoteStore_getNotebook_pargs");
1701 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1702 xfer += oprot->writeString((*(this->authenticationToken)));
1703 xfer += oprot->writeFieldEnd();
1704 xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 2);
1705 xfer += oprot->writeString((*(this->guid)));
1706 xfer += oprot->writeFieldEnd();
1707 xfer += oprot->writeFieldStop();
1708 xfer += oprot->writeStructEnd();
1709 return xfer;
1710}
1711
1712uint32_t NoteStore_getNotebook_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1713
1714 uint32_t xfer = 0;
1715 std::string fname;
1716 ::apache::thrift::protocol::TType ftype;
1717 int16_t fid;
1718
1719 xfer += iprot->readStructBegin(fname);
1720
1721 using ::apache::thrift::protocol::TProtocolException;
1722
1723
1724 while (true)
1725 {
1726 xfer += iprot->readFieldBegin(fname, ftype, fid);
1727 if (ftype == ::apache::thrift::protocol::T_STOP) {
1728 break;
1729 }
1730 switch (fid)
1731 {
1732 case 0:
1733 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1734 xfer += this->success.read(iprot);
1735 this->__isset.success = true;
1736 } else {
1737 xfer += iprot->skip(ftype);
1738 }
1739 break;
1740 case 1:
1741 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1742 xfer += this->userException.read(iprot);
1743 this->__isset.userException = true;
1744 } else {
1745 xfer += iprot->skip(ftype);
1746 }
1747 break;
1748 case 2:
1749 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1750 xfer += this->systemException.read(iprot);
1751 this->__isset.systemException = true;
1752 } else {
1753 xfer += iprot->skip(ftype);
1754 }
1755 break;
1756 case 3:
1757 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1758 xfer += this->notFoundException.read(iprot);
1759 this->__isset.notFoundException = true;
1760 } else {
1761 xfer += iprot->skip(ftype);
1762 }
1763 break;
1764 default:
1765 xfer += iprot->skip(ftype);
1766 break;
1767 }
1768 xfer += iprot->readFieldEnd();
1769 }
1770
1771 xfer += iprot->readStructEnd();
1772
1773 return xfer;
1774}
1775
1776uint32_t NoteStore_getNotebook_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1777
1778 uint32_t xfer = 0;
1779
1780 xfer += oprot->writeStructBegin("NoteStore_getNotebook_result");
1781
1782 if (this->__isset.success) {
1783 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
1784 xfer += this->success.write(oprot);
1785 xfer += oprot->writeFieldEnd();
1786 } else if (this->__isset.userException) {
1787 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
1788 xfer += this->userException.write(oprot);
1789 xfer += oprot->writeFieldEnd();
1790 } else if (this->__isset.systemException) {
1791 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
1792 xfer += this->systemException.write(oprot);
1793 xfer += oprot->writeFieldEnd();
1794 } else if (this->__isset.notFoundException) {
1795 xfer += oprot->writeFieldBegin("notFoundException", ::apache::thrift::protocol::T_STRUCT, 3);
1796 xfer += this->notFoundException.write(oprot);
1797 xfer += oprot->writeFieldEnd();
1798 }
1799 xfer += oprot->writeFieldStop();
1800 xfer += oprot->writeStructEnd();
1801 return xfer;
1802}
1803
1804uint32_t NoteStore_getNotebook_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1805
1806 uint32_t xfer = 0;
1807 std::string fname;
1808 ::apache::thrift::protocol::TType ftype;
1809 int16_t fid;
1810
1811 xfer += iprot->readStructBegin(fname);
1812
1813 using ::apache::thrift::protocol::TProtocolException;
1814
1815
1816 while (true)
1817 {
1818 xfer += iprot->readFieldBegin(fname, ftype, fid);
1819 if (ftype == ::apache::thrift::protocol::T_STOP) {
1820 break;
1821 }
1822 switch (fid)
1823 {
1824 case 0:
1825 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1826 xfer += (*(this->success)).read(iprot);
1827 this->__isset.success = true;
1828 } else {
1829 xfer += iprot->skip(ftype);
1830 }
1831 break;
1832 case 1:
1833 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1834 xfer += this->userException.read(iprot);
1835 this->__isset.userException = true;
1836 } else {
1837 xfer += iprot->skip(ftype);
1838 }
1839 break;
1840 case 2:
1841 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1842 xfer += this->systemException.read(iprot);
1843 this->__isset.systemException = true;
1844 } else {
1845 xfer += iprot->skip(ftype);
1846 }
1847 break;
1848 case 3:
1849 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1850 xfer += this->notFoundException.read(iprot);
1851 this->__isset.notFoundException = true;
1852 } else {
1853 xfer += iprot->skip(ftype);
1854 }
1855 break;
1856 default:
1857 xfer += iprot->skip(ftype);
1858 break;
1859 }
1860 xfer += iprot->readFieldEnd();
1861 }
1862
1863 xfer += iprot->readStructEnd();
1864
1865 return xfer;
1866}
1867
1868uint32_t NoteStore_getDefaultNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1869
1870 uint32_t xfer = 0;
1871 std::string fname;
1872 ::apache::thrift::protocol::TType ftype;
1873 int16_t fid;
1874
1875 xfer += iprot->readStructBegin(fname);
1876
1877 using ::apache::thrift::protocol::TProtocolException;
1878
1879
1880 while (true)
1881 {
1882 xfer += iprot->readFieldBegin(fname, ftype, fid);
1883 if (ftype == ::apache::thrift::protocol::T_STOP) {
1884 break;
1885 }
1886 switch (fid)
1887 {
1888 case 1:
1889 if (ftype == ::apache::thrift::protocol::T_STRING) {
1890 xfer += iprot->readString(this->authenticationToken);
1891 this->__isset.authenticationToken = true;
1892 } else {
1893 xfer += iprot->skip(ftype);
1894 }
1895 break;
1896 default:
1897 xfer += iprot->skip(ftype);
1898 break;
1899 }
1900 xfer += iprot->readFieldEnd();
1901 }
1902
1903 xfer += iprot->readStructEnd();
1904
1905 return xfer;
1906}
1907
1908uint32_t NoteStore_getDefaultNotebook_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1909 uint32_t xfer = 0;
1910 xfer += oprot->writeStructBegin("NoteStore_getDefaultNotebook_args");
1911 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1912 xfer += oprot->writeString(this->authenticationToken);
1913 xfer += oprot->writeFieldEnd();
1914 xfer += oprot->writeFieldStop();
1915 xfer += oprot->writeStructEnd();
1916 return xfer;
1917}
1918
1919uint32_t NoteStore_getDefaultNotebook_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1920 uint32_t xfer = 0;
1921 xfer += oprot->writeStructBegin("NoteStore_getDefaultNotebook_pargs");
1922 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
1923 xfer += oprot->writeString((*(this->authenticationToken)));
1924 xfer += oprot->writeFieldEnd();
1925 xfer += oprot->writeFieldStop();
1926 xfer += oprot->writeStructEnd();
1927 return xfer;
1928}
1929
1930uint32_t NoteStore_getDefaultNotebook_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1931
1932 uint32_t xfer = 0;
1933 std::string fname;
1934 ::apache::thrift::protocol::TType ftype;
1935 int16_t fid;
1936
1937 xfer += iprot->readStructBegin(fname);
1938
1939 using ::apache::thrift::protocol::TProtocolException;
1940
1941
1942 while (true)
1943 {
1944 xfer += iprot->readFieldBegin(fname, ftype, fid);
1945 if (ftype == ::apache::thrift::protocol::T_STOP) {
1946 break;
1947 }
1948 switch (fid)
1949 {
1950 case 0:
1951 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1952 xfer += this->success.read(iprot);
1953 this->__isset.success = true;
1954 } else {
1955 xfer += iprot->skip(ftype);
1956 }
1957 break;
1958 case 1:
1959 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1960 xfer += this->userException.read(iprot);
1961 this->__isset.userException = true;
1962 } else {
1963 xfer += iprot->skip(ftype);
1964 }
1965 break;
1966 case 2:
1967 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1968 xfer += this->systemException.read(iprot);
1969 this->__isset.systemException = true;
1970 } else {
1971 xfer += iprot->skip(ftype);
1972 }
1973 break;
1974 default:
1975 xfer += iprot->skip(ftype);
1976 break;
1977 }
1978 xfer += iprot->readFieldEnd();
1979 }
1980
1981 xfer += iprot->readStructEnd();
1982
1983 return xfer;
1984}
1985
1986uint32_t NoteStore_getDefaultNotebook_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1987
1988 uint32_t xfer = 0;
1989
1990 xfer += oprot->writeStructBegin("NoteStore_getDefaultNotebook_result");
1991
1992 if (this->__isset.success) {
1993 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
1994 xfer += this->success.write(oprot);
1995 xfer += oprot->writeFieldEnd();
1996 } else if (this->__isset.userException) {
1997 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
1998 xfer += this->userException.write(oprot);
1999 xfer += oprot->writeFieldEnd();
2000 } else if (this->__isset.systemException) {
2001 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
2002 xfer += this->systemException.write(oprot);
2003 xfer += oprot->writeFieldEnd();
2004 }
2005 xfer += oprot->writeFieldStop();
2006 xfer += oprot->writeStructEnd();
2007 return xfer;
2008}
2009
2010uint32_t NoteStore_getDefaultNotebook_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2011
2012 uint32_t xfer = 0;
2013 std::string fname;
2014 ::apache::thrift::protocol::TType ftype;
2015 int16_t fid;
2016
2017 xfer += iprot->readStructBegin(fname);
2018
2019 using ::apache::thrift::protocol::TProtocolException;
2020
2021
2022 while (true)
2023 {
2024 xfer += iprot->readFieldBegin(fname, ftype, fid);
2025 if (ftype == ::apache::thrift::protocol::T_STOP) {
2026 break;
2027 }
2028 switch (fid)
2029 {
2030 case 0:
2031 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2032 xfer += (*(this->success)).read(iprot);
2033 this->__isset.success = true;
2034 } else {
2035 xfer += iprot->skip(ftype);
2036 }
2037 break;
2038 case 1:
2039 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2040 xfer += this->userException.read(iprot);
2041 this->__isset.userException = true;
2042 } else {
2043 xfer += iprot->skip(ftype);
2044 }
2045 break;
2046 case 2:
2047 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2048 xfer += this->systemException.read(iprot);
2049 this->__isset.systemException = true;
2050 } else {
2051 xfer += iprot->skip(ftype);
2052 }
2053 break;
2054 default:
2055 xfer += iprot->skip(ftype);
2056 break;
2057 }
2058 xfer += iprot->readFieldEnd();
2059 }
2060
2061 xfer += iprot->readStructEnd();
2062
2063 return xfer;
2064}
2065
2066uint32_t NoteStore_createNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2067
2068 uint32_t xfer = 0;
2069 std::string fname;
2070 ::apache::thrift::protocol::TType ftype;
2071 int16_t fid;
2072
2073 xfer += iprot->readStructBegin(fname);
2074
2075 using ::apache::thrift::protocol::TProtocolException;
2076
2077
2078 while (true)
2079 {
2080 xfer += iprot->readFieldBegin(fname, ftype, fid);
2081 if (ftype == ::apache::thrift::protocol::T_STOP) {
2082 break;
2083 }
2084 switch (fid)
2085 {
2086 case 1:
2087 if (ftype == ::apache::thrift::protocol::T_STRING) {
2088 xfer += iprot->readString(this->authenticationToken);
2089 this->__isset.authenticationToken = true;
2090 } else {
2091 xfer += iprot->skip(ftype);
2092 }
2093 break;
2094 case 2:
2095 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2096 xfer += this->notebook.read(iprot);
2097 this->__isset.notebook = true;
2098 } else {
2099 xfer += iprot->skip(ftype);
2100 }
2101 break;
2102 default:
2103 xfer += iprot->skip(ftype);
2104 break;
2105 }
2106 xfer += iprot->readFieldEnd();
2107 }
2108
2109 xfer += iprot->readStructEnd();
2110
2111 return xfer;
2112}
2113
2114uint32_t NoteStore_createNotebook_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2115 uint32_t xfer = 0;
2116 xfer += oprot->writeStructBegin("NoteStore_createNotebook_args");
2117 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2118 xfer += oprot->writeString(this->authenticationToken);
2119 xfer += oprot->writeFieldEnd();
2120 xfer += oprot->writeFieldBegin("notebook", ::apache::thrift::protocol::T_STRUCT, 2);
2121 xfer += this->notebook.write(oprot);
2122 xfer += oprot->writeFieldEnd();
2123 xfer += oprot->writeFieldStop();
2124 xfer += oprot->writeStructEnd();
2125 return xfer;
2126}
2127
2128uint32_t NoteStore_createNotebook_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2129 uint32_t xfer = 0;
2130 xfer += oprot->writeStructBegin("NoteStore_createNotebook_pargs");
2131 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2132 xfer += oprot->writeString((*(this->authenticationToken)));
2133 xfer += oprot->writeFieldEnd();
2134 xfer += oprot->writeFieldBegin("notebook", ::apache::thrift::protocol::T_STRUCT, 2);
2135 xfer += (*(this->notebook)).write(oprot);
2136 xfer += oprot->writeFieldEnd();
2137 xfer += oprot->writeFieldStop();
2138 xfer += oprot->writeStructEnd();
2139 return xfer;
2140}
2141
2142uint32_t NoteStore_createNotebook_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2143
2144 uint32_t xfer = 0;
2145 std::string fname;
2146 ::apache::thrift::protocol::TType ftype;
2147 int16_t fid;
2148
2149 xfer += iprot->readStructBegin(fname);
2150
2151 using ::apache::thrift::protocol::TProtocolException;
2152
2153
2154 while (true)
2155 {
2156 xfer += iprot->readFieldBegin(fname, ftype, fid);
2157 if (ftype == ::apache::thrift::protocol::T_STOP) {
2158 break;
2159 }
2160 switch (fid)
2161 {
2162 case 0:
2163 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2164 xfer += this->success.read(iprot);
2165 this->__isset.success = true;
2166 } else {
2167 xfer += iprot->skip(ftype);
2168 }
2169 break;
2170 case 1:
2171 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2172 xfer += this->userException.read(iprot);
2173 this->__isset.userException = true;
2174 } else {
2175 xfer += iprot->skip(ftype);
2176 }
2177 break;
2178 case 2:
2179 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2180 xfer += this->systemException.read(iprot);
2181 this->__isset.systemException = true;
2182 } else {
2183 xfer += iprot->skip(ftype);
2184 }
2185 break;
2186 default:
2187 xfer += iprot->skip(ftype);
2188 break;
2189 }
2190 xfer += iprot->readFieldEnd();
2191 }
2192
2193 xfer += iprot->readStructEnd();
2194
2195 return xfer;
2196}
2197
2198uint32_t NoteStore_createNotebook_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2199
2200 uint32_t xfer = 0;
2201
2202 xfer += oprot->writeStructBegin("NoteStore_createNotebook_result");
2203
2204 if (this->__isset.success) {
2205 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
2206 xfer += this->success.write(oprot);
2207 xfer += oprot->writeFieldEnd();
2208 } else if (this->__isset.userException) {
2209 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
2210 xfer += this->userException.write(oprot);
2211 xfer += oprot->writeFieldEnd();
2212 } else if (this->__isset.systemException) {
2213 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
2214 xfer += this->systemException.write(oprot);
2215 xfer += oprot->writeFieldEnd();
2216 }
2217 xfer += oprot->writeFieldStop();
2218 xfer += oprot->writeStructEnd();
2219 return xfer;
2220}
2221
2222uint32_t NoteStore_createNotebook_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2223
2224 uint32_t xfer = 0;
2225 std::string fname;
2226 ::apache::thrift::protocol::TType ftype;
2227 int16_t fid;
2228
2229 xfer += iprot->readStructBegin(fname);
2230
2231 using ::apache::thrift::protocol::TProtocolException;
2232
2233
2234 while (true)
2235 {
2236 xfer += iprot->readFieldBegin(fname, ftype, fid);
2237 if (ftype == ::apache::thrift::protocol::T_STOP) {
2238 break;
2239 }
2240 switch (fid)
2241 {
2242 case 0:
2243 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2244 xfer += (*(this->success)).read(iprot);
2245 this->__isset.success = true;
2246 } else {
2247 xfer += iprot->skip(ftype);
2248 }
2249 break;
2250 case 1:
2251 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2252 xfer += this->userException.read(iprot);
2253 this->__isset.userException = true;
2254 } else {
2255 xfer += iprot->skip(ftype);
2256 }
2257 break;
2258 case 2:
2259 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2260 xfer += this->systemException.read(iprot);
2261 this->__isset.systemException = true;
2262 } else {
2263 xfer += iprot->skip(ftype);
2264 }
2265 break;
2266 default:
2267 xfer += iprot->skip(ftype);
2268 break;
2269 }
2270 xfer += iprot->readFieldEnd();
2271 }
2272
2273 xfer += iprot->readStructEnd();
2274
2275 return xfer;
2276}
2277
2278uint32_t NoteStore_updateNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2279
2280 uint32_t xfer = 0;
2281 std::string fname;
2282 ::apache::thrift::protocol::TType ftype;
2283 int16_t fid;
2284
2285 xfer += iprot->readStructBegin(fname);
2286
2287 using ::apache::thrift::protocol::TProtocolException;
2288
2289
2290 while (true)
2291 {
2292 xfer += iprot->readFieldBegin(fname, ftype, fid);
2293 if (ftype == ::apache::thrift::protocol::T_STOP) {
2294 break;
2295 }
2296 switch (fid)
2297 {
2298 case 1:
2299 if (ftype == ::apache::thrift::protocol::T_STRING) {
2300 xfer += iprot->readString(this->authenticationToken);
2301 this->__isset.authenticationToken = true;
2302 } else {
2303 xfer += iprot->skip(ftype);
2304 }
2305 break;
2306 case 2:
2307 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2308 xfer += this->notebook.read(iprot);
2309 this->__isset.notebook = true;
2310 } else {
2311 xfer += iprot->skip(ftype);
2312 }
2313 break;
2314 default:
2315 xfer += iprot->skip(ftype);
2316 break;
2317 }
2318 xfer += iprot->readFieldEnd();
2319 }
2320
2321 xfer += iprot->readStructEnd();
2322
2323 return xfer;
2324}
2325
2326uint32_t NoteStore_updateNotebook_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2327 uint32_t xfer = 0;
2328 xfer += oprot->writeStructBegin("NoteStore_updateNotebook_args");
2329 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2330 xfer += oprot->writeString(this->authenticationToken);
2331 xfer += oprot->writeFieldEnd();
2332 xfer += oprot->writeFieldBegin("notebook", ::apache::thrift::protocol::T_STRUCT, 2);
2333 xfer += this->notebook.write(oprot);
2334 xfer += oprot->writeFieldEnd();
2335 xfer += oprot->writeFieldStop();
2336 xfer += oprot->writeStructEnd();
2337 return xfer;
2338}
2339
2340uint32_t NoteStore_updateNotebook_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2341 uint32_t xfer = 0;
2342 xfer += oprot->writeStructBegin("NoteStore_updateNotebook_pargs");
2343 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2344 xfer += oprot->writeString((*(this->authenticationToken)));
2345 xfer += oprot->writeFieldEnd();
2346 xfer += oprot->writeFieldBegin("notebook", ::apache::thrift::protocol::T_STRUCT, 2);
2347 xfer += (*(this->notebook)).write(oprot);
2348 xfer += oprot->writeFieldEnd();
2349 xfer += oprot->writeFieldStop();
2350 xfer += oprot->writeStructEnd();
2351 return xfer;
2352}
2353
2354uint32_t NoteStore_updateNotebook_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2355
2356 uint32_t xfer = 0;
2357 std::string fname;
2358 ::apache::thrift::protocol::TType ftype;
2359 int16_t fid;
2360
2361 xfer += iprot->readStructBegin(fname);
2362
2363 using ::apache::thrift::protocol::TProtocolException;
2364
2365
2366 while (true)
2367 {
2368 xfer += iprot->readFieldBegin(fname, ftype, fid);
2369 if (ftype == ::apache::thrift::protocol::T_STOP) {
2370 break;
2371 }
2372 switch (fid)
2373 {
2374 case 0:
2375 if (ftype == ::apache::thrift::protocol::T_I32) {
2376 xfer += iprot->readI32(this->success);
2377 this->__isset.success = true;
2378 } else {
2379 xfer += iprot->skip(ftype);
2380 }
2381 break;
2382 case 1:
2383 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2384 xfer += this->userException.read(iprot);
2385 this->__isset.userException = true;
2386 } else {
2387 xfer += iprot->skip(ftype);
2388 }
2389 break;
2390 case 2:
2391 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2392 xfer += this->systemException.read(iprot);
2393 this->__isset.systemException = true;
2394 } else {
2395 xfer += iprot->skip(ftype);
2396 }
2397 break;
2398 case 3:
2399 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2400 xfer += this->notFoundException.read(iprot);
2401 this->__isset.notFoundException = true;
2402 } else {
2403 xfer += iprot->skip(ftype);
2404 }
2405 break;
2406 default:
2407 xfer += iprot->skip(ftype);
2408 break;
2409 }
2410 xfer += iprot->readFieldEnd();
2411 }
2412
2413 xfer += iprot->readStructEnd();
2414
2415 return xfer;
2416}
2417
2418uint32_t NoteStore_updateNotebook_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2419
2420 uint32_t xfer = 0;
2421
2422 xfer += oprot->writeStructBegin("NoteStore_updateNotebook_result");
2423
2424 if (this->__isset.success) {
2425 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0);
2426 xfer += oprot->writeI32(this->success);
2427 xfer += oprot->writeFieldEnd();
2428 } else if (this->__isset.userException) {
2429 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
2430 xfer += this->userException.write(oprot);
2431 xfer += oprot->writeFieldEnd();
2432 } else if (this->__isset.systemException) {
2433 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
2434 xfer += this->systemException.write(oprot);
2435 xfer += oprot->writeFieldEnd();
2436 } else if (this->__isset.notFoundException) {
2437 xfer += oprot->writeFieldBegin("notFoundException", ::apache::thrift::protocol::T_STRUCT, 3);
2438 xfer += this->notFoundException.write(oprot);
2439 xfer += oprot->writeFieldEnd();
2440 }
2441 xfer += oprot->writeFieldStop();
2442 xfer += oprot->writeStructEnd();
2443 return xfer;
2444}
2445
2446uint32_t NoteStore_updateNotebook_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2447
2448 uint32_t xfer = 0;
2449 std::string fname;
2450 ::apache::thrift::protocol::TType ftype;
2451 int16_t fid;
2452
2453 xfer += iprot->readStructBegin(fname);
2454
2455 using ::apache::thrift::protocol::TProtocolException;
2456
2457
2458 while (true)
2459 {
2460 xfer += iprot->readFieldBegin(fname, ftype, fid);
2461 if (ftype == ::apache::thrift::protocol::T_STOP) {
2462 break;
2463 }
2464 switch (fid)
2465 {
2466 case 0:
2467 if (ftype == ::apache::thrift::protocol::T_I32) {
2468 xfer += iprot->readI32((*(this->success)));
2469 this->__isset.success = true;
2470 } else {
2471 xfer += iprot->skip(ftype);
2472 }
2473 break;
2474 case 1:
2475 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2476 xfer += this->userException.read(iprot);
2477 this->__isset.userException = true;
2478 } else {
2479 xfer += iprot->skip(ftype);
2480 }
2481 break;
2482 case 2:
2483 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2484 xfer += this->systemException.read(iprot);
2485 this->__isset.systemException = true;
2486 } else {
2487 xfer += iprot->skip(ftype);
2488 }
2489 break;
2490 case 3:
2491 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2492 xfer += this->notFoundException.read(iprot);
2493 this->__isset.notFoundException = true;
2494 } else {
2495 xfer += iprot->skip(ftype);
2496 }
2497 break;
2498 default:
2499 xfer += iprot->skip(ftype);
2500 break;
2501 }
2502 xfer += iprot->readFieldEnd();
2503 }
2504
2505 xfer += iprot->readStructEnd();
2506
2507 return xfer;
2508}
2509
2510uint32_t NoteStore_expungeNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2511
2512 uint32_t xfer = 0;
2513 std::string fname;
2514 ::apache::thrift::protocol::TType ftype;
2515 int16_t fid;
2516
2517 xfer += iprot->readStructBegin(fname);
2518
2519 using ::apache::thrift::protocol::TProtocolException;
2520
2521
2522 while (true)
2523 {
2524 xfer += iprot->readFieldBegin(fname, ftype, fid);
2525 if (ftype == ::apache::thrift::protocol::T_STOP) {
2526 break;
2527 }
2528 switch (fid)
2529 {
2530 case 1:
2531 if (ftype == ::apache::thrift::protocol::T_STRING) {
2532 xfer += iprot->readString(this->authenticationToken);
2533 this->__isset.authenticationToken = true;
2534 } else {
2535 xfer += iprot->skip(ftype);
2536 }
2537 break;
2538 case 2:
2539 if (ftype == ::apache::thrift::protocol::T_STRING) {
2540 xfer += iprot->readString(this->guid);
2541 this->__isset.guid = true;
2542 } else {
2543 xfer += iprot->skip(ftype);
2544 }
2545 break;
2546 default:
2547 xfer += iprot->skip(ftype);
2548 break;
2549 }
2550 xfer += iprot->readFieldEnd();
2551 }
2552
2553 xfer += iprot->readStructEnd();
2554
2555 return xfer;
2556}
2557
2558uint32_t NoteStore_expungeNotebook_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2559 uint32_t xfer = 0;
2560 xfer += oprot->writeStructBegin("NoteStore_expungeNotebook_args");
2561 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2562 xfer += oprot->writeString(this->authenticationToken);
2563 xfer += oprot->writeFieldEnd();
2564 xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 2);
2565 xfer += oprot->writeString(this->guid);
2566 xfer += oprot->writeFieldEnd();
2567 xfer += oprot->writeFieldStop();
2568 xfer += oprot->writeStructEnd();
2569 return xfer;
2570}
2571
2572uint32_t NoteStore_expungeNotebook_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2573 uint32_t xfer = 0;
2574 xfer += oprot->writeStructBegin("NoteStore_expungeNotebook_pargs");
2575 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2576 xfer += oprot->writeString((*(this->authenticationToken)));
2577 xfer += oprot->writeFieldEnd();
2578 xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 2);
2579 xfer += oprot->writeString((*(this->guid)));
2580 xfer += oprot->writeFieldEnd();
2581 xfer += oprot->writeFieldStop();
2582 xfer += oprot->writeStructEnd();
2583 return xfer;
2584}
2585
2586uint32_t NoteStore_expungeNotebook_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2587
2588 uint32_t xfer = 0;
2589 std::string fname;
2590 ::apache::thrift::protocol::TType ftype;
2591 int16_t fid;
2592
2593 xfer += iprot->readStructBegin(fname);
2594
2595 using ::apache::thrift::protocol::TProtocolException;
2596
2597
2598 while (true)
2599 {
2600 xfer += iprot->readFieldBegin(fname, ftype, fid);
2601 if (ftype == ::apache::thrift::protocol::T_STOP) {
2602 break;
2603 }
2604 switch (fid)
2605 {
2606 case 0:
2607 if (ftype == ::apache::thrift::protocol::T_I32) {
2608 xfer += iprot->readI32(this->success);
2609 this->__isset.success = true;
2610 } else {
2611 xfer += iprot->skip(ftype);
2612 }
2613 break;
2614 case 1:
2615 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2616 xfer += this->userException.read(iprot);
2617 this->__isset.userException = true;
2618 } else {
2619 xfer += iprot->skip(ftype);
2620 }
2621 break;
2622 case 2:
2623 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2624 xfer += this->systemException.read(iprot);
2625 this->__isset.systemException = true;
2626 } else {
2627 xfer += iprot->skip(ftype);
2628 }
2629 break;
2630 case 3:
2631 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2632 xfer += this->notFoundException.read(iprot);
2633 this->__isset.notFoundException = true;
2634 } else {
2635 xfer += iprot->skip(ftype);
2636 }
2637 break;
2638 default:
2639 xfer += iprot->skip(ftype);
2640 break;
2641 }
2642 xfer += iprot->readFieldEnd();
2643 }
2644
2645 xfer += iprot->readStructEnd();
2646
2647 return xfer;
2648}
2649
2650uint32_t NoteStore_expungeNotebook_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2651
2652 uint32_t xfer = 0;
2653
2654 xfer += oprot->writeStructBegin("NoteStore_expungeNotebook_result");
2655
2656 if (this->__isset.success) {
2657 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0);
2658 xfer += oprot->writeI32(this->success);
2659 xfer += oprot->writeFieldEnd();
2660 } else if (this->__isset.userException) {
2661 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
2662 xfer += this->userException.write(oprot);
2663 xfer += oprot->writeFieldEnd();
2664 } else if (this->__isset.systemException) {
2665 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
2666 xfer += this->systemException.write(oprot);
2667 xfer += oprot->writeFieldEnd();
2668 } else if (this->__isset.notFoundException) {
2669 xfer += oprot->writeFieldBegin("notFoundException", ::apache::thrift::protocol::T_STRUCT, 3);
2670 xfer += this->notFoundException.write(oprot);
2671 xfer += oprot->writeFieldEnd();
2672 }
2673 xfer += oprot->writeFieldStop();
2674 xfer += oprot->writeStructEnd();
2675 return xfer;
2676}
2677
2678uint32_t NoteStore_expungeNotebook_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2679
2680 uint32_t xfer = 0;
2681 std::string fname;
2682 ::apache::thrift::protocol::TType ftype;
2683 int16_t fid;
2684
2685 xfer += iprot->readStructBegin(fname);
2686
2687 using ::apache::thrift::protocol::TProtocolException;
2688
2689
2690 while (true)
2691 {
2692 xfer += iprot->readFieldBegin(fname, ftype, fid);
2693 if (ftype == ::apache::thrift::protocol::T_STOP) {
2694 break;
2695 }
2696 switch (fid)
2697 {
2698 case 0:
2699 if (ftype == ::apache::thrift::protocol::T_I32) {
2700 xfer += iprot->readI32((*(this->success)));
2701 this->__isset.success = true;
2702 } else {
2703 xfer += iprot->skip(ftype);
2704 }
2705 break;
2706 case 1:
2707 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2708 xfer += this->userException.read(iprot);
2709 this->__isset.userException = true;
2710 } else {
2711 xfer += iprot->skip(ftype);
2712 }
2713 break;
2714 case 2:
2715 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2716 xfer += this->systemException.read(iprot);
2717 this->__isset.systemException = true;
2718 } else {
2719 xfer += iprot->skip(ftype);
2720 }
2721 break;
2722 case 3:
2723 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2724 xfer += this->notFoundException.read(iprot);
2725 this->__isset.notFoundException = true;
2726 } else {
2727 xfer += iprot->skip(ftype);
2728 }
2729 break;
2730 default:
2731 xfer += iprot->skip(ftype);
2732 break;
2733 }
2734 xfer += iprot->readFieldEnd();
2735 }
2736
2737 xfer += iprot->readStructEnd();
2738
2739 return xfer;
2740}
2741
2742uint32_t NoteStore_listTags_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2743
2744 uint32_t xfer = 0;
2745 std::string fname;
2746 ::apache::thrift::protocol::TType ftype;
2747 int16_t fid;
2748
2749 xfer += iprot->readStructBegin(fname);
2750
2751 using ::apache::thrift::protocol::TProtocolException;
2752
2753
2754 while (true)
2755 {
2756 xfer += iprot->readFieldBegin(fname, ftype, fid);
2757 if (ftype == ::apache::thrift::protocol::T_STOP) {
2758 break;
2759 }
2760 switch (fid)
2761 {
2762 case 1:
2763 if (ftype == ::apache::thrift::protocol::T_STRING) {
2764 xfer += iprot->readString(this->authenticationToken);
2765 this->__isset.authenticationToken = true;
2766 } else {
2767 xfer += iprot->skip(ftype);
2768 }
2769 break;
2770 default:
2771 xfer += iprot->skip(ftype);
2772 break;
2773 }
2774 xfer += iprot->readFieldEnd();
2775 }
2776
2777 xfer += iprot->readStructEnd();
2778
2779 return xfer;
2780}
2781
2782uint32_t NoteStore_listTags_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2783 uint32_t xfer = 0;
2784 xfer += oprot->writeStructBegin("NoteStore_listTags_args");
2785 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2786 xfer += oprot->writeString(this->authenticationToken);
2787 xfer += oprot->writeFieldEnd();
2788 xfer += oprot->writeFieldStop();
2789 xfer += oprot->writeStructEnd();
2790 return xfer;
2791}
2792
2793uint32_t NoteStore_listTags_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2794 uint32_t xfer = 0;
2795 xfer += oprot->writeStructBegin("NoteStore_listTags_pargs");
2796 xfer += oprot->writeFieldBegin("authenticationToken", ::apache::thrift::protocol::T_STRING, 1);
2797 xfer += oprot->writeString((*(this->authenticationToken)));
2798 xfer += oprot->writeFieldEnd();
2799 xfer += oprot->writeFieldStop();
2800 xfer += oprot->writeStructEnd();
2801 return xfer;
2802}
2803
2804uint32_t NoteStore_listTags_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2805
2806 uint32_t xfer = 0;
2807 std::string fname;
2808 ::apache::thrift::protocol::TType ftype;
2809 int16_t fid;
2810
2811 xfer += iprot->readStructBegin(fname);
2812
2813 using ::apache::thrift::protocol::TProtocolException;
2814
2815
2816 while (true)
2817 {
2818 xfer += iprot->readFieldBegin(fname, ftype, fid);
2819 if (ftype == ::apache::thrift::protocol::T_STOP) {
2820 break;
2821 }
2822 switch (fid)
2823 {
2824 case 0:
2825 if (ftype == ::apache::thrift::protocol::T_LIST) {
2826 {
2827 this->success.clear();
2828 uint32_t _size177;
2829 ::apache::thrift::protocol::TType _etype180;
2830 iprot->readListBegin(_etype180, _size177);
2831 this->success.resize(_size177);
2832 uint32_t _i181;
2833 for (_i181 = 0; _i181 < _size177; ++_i181)
2834 {
2835 xfer += this->success[_i181].read(iprot);
2836 }
2837 iprot->readListEnd();
2838 }
2839 this->__isset.success = true;
2840 } else {
2841 xfer += iprot->skip(ftype);
2842 }
2843 break;
2844 case 1:
2845 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2846 xfer += this->userException.read(iprot);
2847 this->__isset.userException = true;
2848 } else {
2849 xfer += iprot->skip(ftype);
2850 }
2851 break;
2852 case 2:
2853 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2854 xfer += this->systemException.read(iprot);
2855 this->__isset.systemException = true;
2856 } else {
2857 xfer += iprot->skip(ftype);
2858 }
2859 break;
2860 default:
2861 xfer += iprot->skip(ftype);
2862 break;
2863 }
2864 xfer += iprot->readFieldEnd();
2865 }
2866
2867 xfer += iprot->readStructEnd();
2868
2869 return xfer;
2870}
2871
2872uint32_t NoteStore_listTags_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2873
2874 uint32_t xfer = 0;
2875
2876 xfer += oprot->writeStructBegin("NoteStore_listTags_result");
2877
2878 if (this->__isset.success) {
2879 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2880 {
2881 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
2882 std::vector<evernote::edam::Tag> ::const_iterator _iter182;
2883 for (_iter182 = this->success.begin(); _iter182 != this->success.end(); ++_iter182)
2884 {
2885 xfer += (*_iter182).write(oprot);
2886 }
2887 xfer += oprot->writeListEnd();
2888 }
2889 xfer += oprot->writeFieldEnd();
2890 } else if (this->__isset.userException) {
2891 xfer += oprot->writeFieldBegin("userException", ::apache::thrift::protocol::T_STRUCT, 1);
2892 xfer += this->userException.write(oprot);
2893 xfer += oprot->writeFieldEnd();
2894 } else if (this->__isset.systemException) {
2895 xfer += oprot->writeFieldBegin("systemException", ::apache::thrift::protocol::T_STRUCT, 2);
2896 xfer += this->systemException.write(oprot);
2897 xfer += oprot->writeFieldEnd();
2898 }
2899 xfer += oprot->writeFieldStop();
2900 xfer += oprot->writeStructEnd();
2901 return xfer;
2902}
2903
2904uint32_t NoteStore_listTags_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2905
2906 uint32_t xfer = 0;
2907 std::string fname;
2908 ::apache::thrift::protocol::TType ftype;
2909 int16_t fid;
2910
2911 xfer += iprot->readStructBegin(fname);
2912
2913 using ::apache::thrift::protocol::TProtocolException;
2914
2915
2916 while (true)
2917 {
2918 xfer += iprot->readFieldBegin(fname, ftype, fid);
2919 if (ftype == ::apache::thrift::protocol::T_STOP) {
2920 break;
2921 }
2922 switch (fid)
2923 {
2924 case 0:
2925 if (ftype == ::apache::thrift::protocol::T_LIST) {
2926 {
2927 (*(this->success)).clear();
2928 uint32_t _size183;
2929 ::apache::thrift::protocol::TType _etype186;
2930 iprot->readListBegin(_etype186, _size183);
2931 (*(this->success)).resize(_size183);
2932 uint32_t _i187;
2933 for (_i187 = 0; _i187 < _size183; ++_i187)
2934 {
2935 xfer += (*(this->success))[_i187].read(iprot);
2936 }
2937 iprot->readListEnd();
2938 }
2939 this->__isset.success = true;
2940 } else {
2941 xfer += iprot->skip(ftype);
2942 }
2943 break;
2944 case 1:
2945 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2946 xfer += this->userException.read(iprot);
2947 this->__isset.userException = true;
2948 } else {
2949 xfer += iprot->skip(ftype);
2950 }
2951 break;
2952 case 2:
2953 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2954 xfer += this->systemException.read(iprot);
2955 this->__isset.systemException = true;
2956 } else {
2957 xfer += iprot->skip(ftype);
2958 }
2959 break;
2960 default:
2961 xfer += iprot->skip(ftype);
2962 break;
2963 }
2964 xfer += iprot->readFieldEnd();
2965 }
2966
2967 xfer += iprot->readStructEnd();
2968
2969 return xfer;
2970}
2971
2972uint32_t NoteStore_listTagsByNotebook_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2973
2974 uint32_t xfer = 0;
2975 std::string fname;
2976 ::apache::thrift::protocol::TType ftype;
2977 int16_t fid;
2978
2979 xfer += iprot->readStructBegin(fname);
2980
2981 using ::apache::thrift::protocol::TProtocolException;
2982
2983
2984 while (true)
2985 {
2986 xfer += iprot->readFieldBegin(fname, ftype, fid);
2987 if (ftype == ::apache::thrift::protocol::T_STOP) {
2988 break;
2989 }
2990 switch (fid)
2991 {
2992 case 1:
2993 if (ftype == ::apache::thrift::protocol::T_STRING) {
2994 xfer += iprot->readString(this->authenticationToken);
2995 this->__isset.authenticationToken = true;
2996 } else {
2997 xfer += iprot->skip(ftype);
2998 }
2999 break;
3000 case 2:
3001 if (ftype == ::apache::thrift::protocol::T_STRING) {
3002 xfer += iprot->readString(this->notebookGuid);
3003 this->__isset.notebookGuid = true;
3004 } else {
3005 xfer += iprot->skip(ftype);
3006 }
3007 break;
3008 default:
3009 xfer += iprot->skip(ftype);
3010 break;
3011 }
3012 xfer += iprot->readFieldEnd();
3013 }
3014
3015 xfer += iprot->readStructEnd();
3016
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches