Initial Commit.
[onlineservices] / googledocument.cpp
1 /*
2  * This file is part of Maemo 5 Office UI for KOffice
3  *
4  * Copyright (C) 2010 Manikandaprasad N C <maninc@gmail.com>.
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 #include "googledocument.h"
25
26 GoogleDocument::GoogleDocument()
27 {
28 }
29
30 void GoogleDocument::setEtag(const QString & etag)
31 {
32     m_etag = etag;
33 }
34
35 QString GoogleDocument::etag ()
36 {
37     return m_etag;
38 }
39
40 void GoogleDocument::setId (const QString & id)
41 {
42     m_id = id;
43
44     setDocumentType(id.left(id.indexOf(":")));
45 }
46
47 QString GoogleDocument::id ()
48 {
49     return m_id;
50 }
51
52 void GoogleDocument::setTitle (const QString & title)
53 {
54     m_title = title;
55 }
56
57 QString GoogleDocument::title ()
58 {
59     return m_title;
60 }
61
62 void GoogleDocument::setAuthor (const QString & author)
63 {
64     m_author = author;
65 }
66
67 QString GoogleDocument::author ()
68 {
69     return m_author;
70 }
71
72 void GoogleDocument::setDocumentType (const QString & docType)
73 {
74     m_docType = docType;
75 }
76
77 QString GoogleDocument::documentType ()
78 {
79     return m_docType;
80 }
81
82 void GoogleDocument::setDocumentUrl (const QString & url)
83 {
84     m_documetUrl = url;
85 }
86
87 QString GoogleDocument::documentUrl ()
88 {
89     return m_documetUrl;
90 }