~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kcontactmanager/xxport/csv/dateparser.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Alessandro Ghersi, Harald Sitter
  • Date: 2009-06-27 04:40:05 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627044005-4y2vm9xz7rvmzi4p
Tags: 4:4.2.95svn20090701-0ubuntu1
[ Alessandro Ghersi ]
* New upstream release
  - Bump build-deps
* Remove akonadi-kde and libmaildir4 packages
  - remove akonadi-kde.install and libmaildir4.install
  - remove libmaildir4 from debian/rules
  - remove akonadi-kde and libmaildir4 from depends
  - remove akonadi-kde and libmaildir4 from installgen
* Update kdepim-dev.install
* Update kpilot.install
* Add akonadi-kde and libmaildir4 transitional packages

[ Harald Sitter ]
* KAddressbook replaces Kontact << 4.2.85 (LP: #378373)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    This file is part of KContactManager.
3
 
    Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
4
 
 
5
 
    This program is free software; you can redistribute it and/or modify
6
 
    it under the terms of the GNU General Public License as published by
7
 
    the Free Software Foundation; either version 2 of the License, or
8
 
    (at your option) any later version.
9
 
 
10
 
    This program is distributed in the hope that it will be useful,
11
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
 
    GNU General Public License for more details.
14
 
 
15
 
    You should have received a copy of the GNU General Public License
16
 
    along with this program; if not, write to the Free Software
17
 
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
*/
19
 
 
20
 
#ifndef DATEPARSER_H
21
 
#define DATEPARSER_H
22
 
 
23
 
#include <QtCore/QDate>
24
 
#include <QtCore/QString>
25
 
 
26
 
/**
27
 
  This class parses the date out of a given string with the
28
 
  help of a pattern.
29
 
  The pattern can contains the following key characters:
30
 
    y = year (e.g. 82)
31
 
    Y = year (e.g. 1982)
32
 
    m = month (e.g. 7, 07 or 12)
33
 
    M = month (e.g. 07 or 12)
34
 
    d = day (e.g. 3, 03 or 17)
35
 
    D = day (e.g. 03 or 17 )
36
 
 */
37
 
class DateParser
38
 
{
39
 
  public:
40
 
    DateParser( const QString &pattern );
41
 
    ~DateParser();
42
 
 
43
 
    QDate parse( const QString &dateStr ) const;
44
 
 
45
 
  private:
46
 
    QString mPattern;
47
 
};
48
 
 
49
 
#endif