|
|
|
|
@ -1,24 +1,36 @@ |
|
|
|
|
#include "vcard.h" |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <ctype.h> |
|
|
|
|
#include <klocale.h> |
|
|
|
|
/**
|
|
|
|
|
* vcard.cpp |
|
|
|
|
* |
|
|
|
|
* Copyright (c) 2000 George Staikos <staikos@kde.org> |
|
|
|
|
* |
|
|
|
|
* This program is free software; you can redistribute it and/or modify |
|
|
|
|
* it under the terms of the GNU General Public License as published by |
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
|
|
|
|
* (at your option) any later version. |
|
|
|
|
* |
|
|
|
|
* This program is distributed in the hope that it will be useful, |
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
* GNU General Public License for more details. |
|
|
|
|
* |
|
|
|
|
* You should have received a copy of the GNU General Public License |
|
|
|
|
* along with this program; if not, write to the Free Software |
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// VCard class to handle creation and parsing of Netscape
|
|
|
|
|
// vcards as per RFC 2426 (and possibly more)
|
|
|
|
|
//
|
|
|
|
|
// Copyright 2000, George Staikos <staikos@kde.org>
|
|
|
|
|
//
|
|
|
|
|
// Released under GPL.
|
|
|
|
|
//
|
|
|
|
|
// Also freely useable under the QPL.
|
|
|
|
|
//
|
|
|
|
|
// Requires QT.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
// FIXME: do proper CRLF/CR handling
|
|
|
|
|
// FIXME: handle TYPE=x,y,z qualifiers
|
|
|
|
|
|
|
|
|
|
#include "vcard.h" |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <ctype.h> |
|
|
|
|
#include <klocale.h> |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
Parser structure: |
|
|
|
|
|