1 /*
2  *	dependcy.cc
3  *	Dependency class
4  *	AYM 2000-04-09
5  */
6 
7 
8 /*
9 This file is part of Yadex.
10 
11 Yadex incorporates code from DEU 5.21 that was put in the public domain in
12 1994 by Rapha�l Quinet and Brendon Wyber.
13 
14 The rest of Yadex is Copyright � 1997-2003 Andr� Majorel and others.
15 
16 This program is free software; you can redistribute it and/or modify it under
17 the terms of the GNU General Public License as published by the Free Software
18 Foundation; either version 2 of the License, or (at your option) any later
19 version.
20 
21 This program is distributed in the hope that it will be useful, but WITHOUT
22 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
23 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
24 
25 You should have received a copy of the GNU General Public License along with
26 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
27 Place, Suite 330, Boston, MA 02111-1307, USA.
28 */
29 
30 
31 #include "yadex.h"  /* Just to force a recompile when you ./configure again */
32 #include "dependcy.h"
33 #include "serialnum.h"
34 
35 
Dependency(Serial_num * sn)36 Dependency::Dependency (Serial_num *sn)
37 {
38   serial_num  = sn;
39   token_valid = false;
40 }
41 
42 
outdated()43 bool Dependency::outdated ()
44 {
45   if (! token_valid)
46     return true;
47   return serial_num->outdated (token);
48 }
49 
50 
update()51 void Dependency::update ()
52 {
53   serial_num->update (token);
54   token_valid = true;
55 }
56 
57