blob: abb6e1d2f1122b650d95bc83d048fd5288b4d738 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>kshowmail: kshowmail/kshowmaildoc.cpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="dir_656923b733374505e0e2f68ecb68d952.html">kshowmail</a></div>
<h1>kshowmaildoc.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> kshowmaildoc.cpp - description</span>
<a name="l00003"></a>00003 <span class="comment"> -------------------</span>
<a name="l00004"></a>00004 <span class="comment"> begin : Fre Sep 28 23:29:54 CEST 2001</span>
<a name="l00005"></a>00005 <span class="comment"> copyright : (C) 2001 by Eggert Ehmke</span>
<a name="l00006"></a>00006 <span class="comment"> email : eggert.ehmke@berlin.de</span>
<a name="l00007"></a>00007 <span class="comment"> ***************************************************************************/</span>
<a name="l00008"></a>00008
<a name="l00009"></a>00009 <span class="comment">/***************************************************************************</span>
<a name="l00010"></a>00010 <span class="comment"> * *</span>
<a name="l00011"></a>00011 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
<a name="l00012"></a>00012 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
<a name="l00013"></a>00013 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
<a name="l00014"></a>00014 <span class="comment"> * (at your option) any later version. *</span>
<a name="l00015"></a>00015 <span class="comment"> * *</span>
<a name="l00016"></a>00016 <span class="comment"> ***************************************************************************/</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">// include files for Qt</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include <qdir.h></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include <qwidget.h></span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="comment">// include files for KDE</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include <klocale.h></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include <kmessagebox.h></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include <kio/job.h></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include <kio/netaccess.h></span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="comment">// application specific includes</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "kshowmaildoc.h"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "kshowmail.h"</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "kshowmailview.h"</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <a class="code" href="classKshowmailView.html">KshowmailView</a> *<a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">KshowmailDoc::pView</a> = 0L;
<a name="l00034"></a>00034
<a name="l00035"></a><a class="code" href="classKshowmailDoc.html#02b11dd19d0c777a043a491d8811a553">00035</a> <a class="code" href="classKshowmailDoc.html#02b11dd19d0c777a043a491d8811a553">KshowmailDoc::KshowmailDoc</a>(QWidget *parent, <span class="keyword">const</span> <span class="keywordtype">char</span> *name) : QObject(parent, name)
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038
<a name="l00039"></a><a class="code" href="classKshowmailDoc.html#fe8d064e8b1d44683fde4e3261333841">00039</a> <a class="code" href="classKshowmailDoc.html#fe8d064e8b1d44683fde4e3261333841">KshowmailDoc::~KshowmailDoc</a>()
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 }
<a name="l00042"></a>00042
<a name="l00043"></a><a class="code" href="classKshowmailDoc.html#d9c7e004cad6927dd62d7a0d8f1f29b1">00043</a> <span class="keywordtype">void</span> <a class="code" href="classKshowmailDoc.html#d9c7e004cad6927dd62d7a0d8f1f29b1">KshowmailDoc::addView</a>(<a class="code" href="classKshowmailView.html">KshowmailView</a> *view)
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">pView</a> = view;
<a name="l00046"></a>00046 }
<a name="l00047"></a>00047
<a name="l00048"></a><a class="code" href="classKshowmailDoc.html#e9cd9ebc0c1bbbdf1d4178bc92fe5f55">00048</a> <span class="keywordtype">void</span> <a class="code" href="classKshowmailDoc.html#e9cd9ebc0c1bbbdf1d4178bc92fe5f55">KshowmailDoc::removeView</a>(<a class="code" href="classKshowmailView.html">KshowmailView</a>*)
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050 <span class="keyword">delete</span> <a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">pView</a>;
<a name="l00051"></a>00051 }
<a name="l00052"></a>00052
<a name="l00053"></a><a class="code" href="classKshowmailDoc.html#aad1bfe0342bb8ef8b48e4feae5a4e7c">00053</a> <span class="keywordtype">void</span> <a class="code" href="classKshowmailDoc.html#aad1bfe0342bb8ef8b48e4feae5a4e7c">KshowmailDoc::setURL</a>(<span class="keyword">const</span> KURL &url)
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <a class="code" href="classKshowmailDoc.html#4c93bab9aac95af03ca857ab3e09cf21">doc_url</a>=url;
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057
<a name="l00058"></a><a class="code" href="classKshowmailDoc.html#a498d92a8c3b8a41f2bbf198f593435a">00058</a> <span class="keyword">const</span> KURL& <a class="code" href="classKshowmailDoc.html#a498d92a8c3b8a41f2bbf198f593435a">KshowmailDoc::URL</a>()<span class="keyword"> const</span>
<a name="l00059"></a>00059 <span class="keyword"></span>{
<a name="l00060"></a>00060 <span class="keywordflow">return</span> <a class="code" href="classKshowmailDoc.html#4c93bab9aac95af03ca857ab3e09cf21">doc_url</a>;
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062
<a name="l00063"></a>00063 <span class="comment">// this could be deleted; perhaps we build a tree view sometime ?</span>
<a name="l00064"></a><a class="code" href="classKshowmailDoc.html#2feac43fb28fdb4971fb601520d17c54">00064</a> <span class="keywordtype">void</span> <a class="code" href="classKshowmailDoc.html#2feac43fb28fdb4971fb601520d17c54">KshowmailDoc::slotUpdateAllViews</a>(<a class="code" href="classKshowmailView.html">KshowmailView</a> *sender)
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066 <span class="keywordflow">if</span>(<a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">pView</a>)
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keywordflow">if</span>(<a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">pView</a>!=sender)
<a name="l00069"></a>00069 <a class="code" href="classKshowmailDoc.html#c3f05aa2557d4b0f94392530ea62bbd4">pView</a>->repaint();
<a name="l00070"></a>00070 }
<a name="l00071"></a>00071 }
<a name="l00072"></a>00072
<a name="l00073"></a><a class="code" href="classKshowmailDoc.html#929fdd9ad1f89ed9a000cf8c96d9f711">00073</a> <span class="keywordtype">bool</span> <a class="code" href="classKshowmailDoc.html#929fdd9ad1f89ed9a000cf8c96d9f711">KshowmailDoc::newDocument</a>()
<a name="l00074"></a>00074 {
<a name="l00076"></a>00076 <span class="comment">// TODO: Add your document initialization code here</span>
<a name="l00078"></a>00078 <span class="comment"></span> <a class="code" href="classKshowmailDoc.html#4c93bab9aac95af03ca857ab3e09cf21">doc_url</a>.setFileName(i18n(<span class="stringliteral">"Untitled"</span>));
<a name="l00079"></a>00079
<a name="l00080"></a>00080 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00081"></a>00081 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 19:36:06 2007 for kshowmail by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body>
</html>
|