[Uludag-commits] r12241 - in trunk/knazar: . src

svn-uludag at uludag.org.tr svn-uludag at uludag.org.tr
4 Şub 2007 Paz 21:25:41 EET


Author: caglar
Date: Sun Feb  4 21:25:41 2007
New Revision: 12241

Modified:
   trunk/knazar/AUTHORS
   trunk/knazar/ChangeLog
   trunk/knazar/src/knazar.cpp
   trunk/knazar/src/knazar.h
   trunk/knazar/src/knazardcop.h
   trunk/knazar/src/main.cpp
Log:
some work, nothing is important

Modified: trunk/knazar/AUTHORS
=================================================================
--- trunk/knazar/AUTHORS	(original)
+++ trunk/knazar/AUTHORS	Sun Feb  4 21:25:41 2007
@@ -1 +1 @@
-S.Çağlar Onur <caglar _at_ uludag.org.tr>
+S.Çağlar Onur <caglar _at_ pardus.org.tr>

Modified: trunk/knazar/ChangeLog
=================================================================
--- trunk/knazar/ChangeLog	(original)
+++ trunk/knazar/ChangeLog	Sun Feb  4 21:25:41 2007
@@ -1,6 +1,6 @@
-* 16/12/2005 S.Çağkar Onur <caglar _at_ uludag.org.tr>:
+* 16/12/2005 S.Çağkar Onur <caglar _at_ pardus.org.tr>:
     New icons by Serdat Soytetir
 
-* 17/9/2005 S.Çağlar Onur <caglar _at_ uludag.org.tr>:
+* 17/9/2005 S.Çağlar Onur <caglar _at_ pardus.org.tr>:
 	Build system now uses SCons instead of old and ugly autotools/automake
 	and their family...

Modified: trunk/knazar/src/knazar.cpp
=================================================================
--- trunk/knazar/src/knazar.cpp	(original)
+++ trunk/knazar/src/knazar.cpp	Sun Feb  4 21:25:41 2007
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005 by TUBITAK/UEKAE                                   *
+ *   Copyright (C) 2005, 2007 by TUBITAK/UEKAE                                   *
  *                                                                         *
  *   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  *
@@ -66,14 +66,10 @@
 	QToolTip::add( this, i18n( "knazar - No Harmfull look allowed!" ));
 }
 
-knazar::~knazar()
-{
-}
-
 // Slots
 void knazar::protect_from_harmfull_looks()
 {
-	if ( protection_working == false )
+	if ( !is_protecting() )
 	{
 		KMessageBox::information( 0, i18n( "KNazar is starting to protect your Pardus Linux from harmfull looks..." ));
 			    
@@ -86,7 +82,7 @@
 void knazar::release_the_protection()
 {
 
-	if ( protection_working == true )
+	if ( is_protecting() )
 	{
 		KMessageBox::sorry( 0, i18n( "KNazar is stoping to protect your Pardus Linux from harmfull looks..." ));
 
@@ -106,7 +102,7 @@
 {
 	++number_of_attacks;
 
-	if ( protection_working == true )
+	if ( is_protecting() )
 	{
 		++defated_attacks;
 		balloon = new KNazarBalloon( i18n( "<qt><nobr><b>Nazar Received and eliminated successfuly</b></nobr><br><nobr></nobr></qt>" ), QString::null );
@@ -125,6 +121,15 @@
 					.arg( number_of_attacks - defated_attacks ));
 }
 
+bool knazar::is_protecting()
+{
+
+	if (protection_working == true)
+		return true;
+	else
+		return false;
+}
+
 void knazar::about()
 {
 	KMessageBox::information( 0, i18n( "KNazar is a usefull part of the Pardus Linux" ));

Modified: trunk/knazar/src/knazar.h
=================================================================
--- trunk/knazar/src/knazar.h	(original)
+++ trunk/knazar/src/knazar.h	Sun Feb  4 21:25:41 2007
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005 by TUBITAK/UEKAE                                   *
+ *   Copyright (C) 2005, 2007 by TUBITAK/UEKAE                                   *
  *                                                                         *
  *   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  *
@@ -17,7 +17,6 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-
 #ifndef _KNAZAR_H_
 #define _KNAZAR_H_
 
@@ -32,10 +31,10 @@
 	Q_OBJECT
 public:
 	knazar();
-	virtual ~knazar();
 public slots:
 	void protect_from_harmfull_looks();
 	void release_the_protection();
+	bool is_protecting();
 	void send_nazar();
 	void about();
 private:
@@ -45,4 +44,4 @@
 	KNazarBalloon * balloon;
 };
 
-#endif // _KNAZAR_H_
+#endif

Modified: trunk/knazar/src/knazardcop.h
=================================================================
--- trunk/knazar/src/knazardcop.h	(original)
+++ trunk/knazar/src/knazardcop.h	Sun Feb  4 21:25:41 2007
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005 by TUBITAK/UEKAE                                   *
+ *   Copyright (C) 2005, 2007 by TUBITAK/UEKAE                                   *
  *                                                                         *
  *   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  *
@@ -29,6 +29,7 @@
     virtual void protect_from_harmfull_looks() = 0;
     virtual void release_the_protection() = 0;
     virtual void send_nazar() = 0;
+    virtual bool is_protecting() = 0;
 };
 
 #endif

Modified: trunk/knazar/src/main.cpp
=================================================================
--- trunk/knazar/src/main.cpp	(original)
+++ trunk/knazar/src/main.cpp	Sun Feb  4 21:25:41 2007
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005 by TUBITAK/UEKAE                                   *
+ *   Copyright (C) 2005, 2007 by TUBITAK/UEKAE                                   *
  *                                                                         *
  *   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  *
@@ -17,7 +17,6 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-
 #include "knazar.h"
 
 #include <kuniqueapplication.h>
@@ -27,7 +26,7 @@
 
 static const char description[] = I18N_NOOP("KDE Nazar Application");
 
-static const char version[] = "0.1";
+static const char version[] = "0.2";
 
 static KCmdLineOptions options[] =
 {
@@ -37,8 +36,8 @@
 int main(int argc, char **argv)
 {
 	KAboutData about("knazar", I18N_NOOP("knazar"), version, description,
-	KAboutData::License_GPL, "(C) 2005 TUBITAK/UEKAE", 0, 0, "bilgi at uludag.org.tr");
-	about.addAuthor( "S.Çağlar Onur", 0, "caglar at uludag.org.tr" );
+	KAboutData::License_GPL, "(C) 2005, 2007 TUBITAK/UEKAE", 0, 0, "bilgi at pardus.org.tr");
+	about.addAuthor( "S.Çağlar Onur", 0, "caglar at pardus.org.tr" );
 
 	KCmdLineArgs::init(argc, argv, &about);
 	KCmdLineArgs::addCmdLineOptions( options );


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi