Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (44 sloc) 1.34 KB
/*
* Eleutian Trainer Studio Application Opensource Edition, a VoIP client with Webkit and Flash support.
* Copyright (C) 2011, Eleutian Technology, LLC <http://www.eleutian.com>
*
* Version: Apache License 2.0
*
* The content of this file is licensed under the Apache License, Version 2.0. (the "License").
* You may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Eleutian Trainer Studio Application Opensource Edition.
*
* The Initial Developer of the Original Code is
* Seven Du <seven@eleutian.com>
* Portions created by the Initial Developer are Copyright (C)
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* A QT class wrapper for the cJSON parser, no serializer included
*/
#ifndef QJSON_H
#define QJSON_H
#include <qvariant.h>
#include <qbytearray.h>
#include <cjson.h>
class qJSON
{
public:
qJSON();
~qJSON();
void parse(char *s, bool *ok);
QVariantMap toMap();
private:
cJSON *_json;
QVariantMap toMap(cJSON *json_object, int max_depth);
};
#endif // QJSON_H
Jump to Line
Something went wrong with that request. Please try again.