blob: 5ec5fa117e83d6b5ae28c3dc0d7cfcfcc7402eb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/***************************************************************************
kshowmaildoc.cpp - description
-------------------
begin : Fre Sep 28 23:29:54 CEST 2001
copyright : (C) 2001 by Eggert Ehmke
email : eggert.ehmke@berlin.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
// include files for TQt
#include <tqdir.h>
#include <tqwidget.h>
// include files for KDE
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <tdeio/job.h>
#include <tdeio/netaccess.h>
// application specific includes
#include "kshowmaildoc.h"
#include "kshowmail.h"
#include "kshowmailview.h"
KshowmailView *KshowmailDoc::pView = 0L;
KshowmailDoc::KshowmailDoc(TQWidget *parent, const char *name) : TQObject(parent, name)
{
}
KshowmailDoc::~KshowmailDoc()
{
}
void KshowmailDoc::addView(KshowmailView *view)
{
pView = view;
}
void KshowmailDoc::removeView(KshowmailView*)
{
delete pView;
}
void KshowmailDoc::setURL(const KURL &url)
{
doc_url=url;
}
const KURL& KshowmailDoc::URL() const
{
return doc_url;
}
// this could be deleted; perhaps we build a tree view sometime ?
void KshowmailDoc::slotUpdateAllViews(KshowmailView *sender)
{
if(pView)
{
if(pView!=sender)
pView->repaint();
}
}
bool KshowmailDoc::newDocument()
{
/////////////////////////////////////////////////
// TODO: Add your document initialization code here
/////////////////////////////////////////////////
doc_url.setFileName(i18n("Untitled"));
return true;
}
#include "kshowmaildoc.moc"
|