[glibmm/gmmproc-refactor: 21/23] Add special ignoring module.



commit 0f58d10d400ba166bf1a3779ac8904300f313405
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Mon Sep 26 14:59:56 2011 +0200

    Add special ignoring module.

 tools/pm/Gir/Handlers/Ignore.pm           |   54 +++++++++++++++++++++-------
 tools/pm/Gir/Handlers/IgnoreEndStore.pm   |   23 +++++++++++--
 tools/pm/Gir/Handlers/IgnoreStartStore.pm |   23 +++++++++++--
 tools/pm/Gir/Handlers/IgnoreStores.pm     |   23 ++++++++++++
 4 files changed, 103 insertions(+), 20 deletions(-)
---
diff --git a/tools/pm/Gir/Handlers/Ignore.pm b/tools/pm/Gir/Handlers/Ignore.pm
index 5b77b98..c3a9d4c 100644
--- a/tools/pm/Gir/Handlers/Ignore.pm
+++ b/tools/pm/Gir/Handlers/Ignore.pm
@@ -1,34 +1,60 @@
+## Copyright 2011 Krzesimir Nowak
+##
+## 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.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+##
+
 package Gir::Handlers::Ignore;
 
 use strict;
 use warnings;
 
-use parent qw(Gir::Handlers::Base);
+use parent qw(Gir::Handlers::Generated::Common::Base);
 
-use Gir::Handlers::IgnoreEndStore;
-use Gir::Handlers::IgnoreStartStore;
+use Gir::Handlers::IgnoreStores;
 
-##
-## public:
-##
-sub new ($)
+sub _setup_handlers ($)
 {
-  my $type = shift;
-  my $class = (ref ($type) or $type or 'Gir::Handlers::Ignore');
-  my $self = $class->SUPER->new ();
+  my $self = shift;
 
   $self->_set_handlers
   (
     Gir::Handlers::IgnoreStartStore->new (),
     Gir::Handlers::IgnoreEndStore->new ()
   );
+}
 
-  return bless ($self, $class);
+sub _setup_subhandlers ($)
+{
+  my $self = shift;
+
+  $self->_set_subhandlers
+  ({
+    '*' => 'Gir::Handlers::Ignore'
+  });
 }
 
-sub get_subhandlers_for ($$)
+##
+## public:
+##
+sub new ($)
 {
-  return Gir::Handlers::Ignore->new ();
+  my $type = shift;
+  my $class = (ref ($type) or $type or 'Gir::Handlers::Ignore');
+  my $self = $class->SUPER::new ();
+
+  return bless ($self, $class);
 }
 
-1;
+1; # indicate proper module load.
diff --git a/tools/pm/Gir/Handlers/IgnoreEndStore.pm b/tools/pm/Gir/Handlers/IgnoreEndStore.pm
index 40ed88a..838a9df 100644
--- a/tools/pm/Gir/Handlers/IgnoreEndStore.pm
+++ b/tools/pm/Gir/Handlers/IgnoreEndStore.pm
@@ -1,9 +1,26 @@
+## Copyright 2011 Krzesimir Nowak
+##
+## 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.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+##
+
 package Gir::Handlers::IgnoreEndStore;
 
 use strict;
 use warnings;
 
-use parent qw(Gir::Handlers::Store);
+use parent qw(Gir::Handlers::Generated::Common::Store);
 
 use Gir::Handlers::Common;
 
@@ -14,7 +31,7 @@ sub new ($)
 {
   my $type = shift;
   my $class = (ref ($type) or $type or 'Gir::Handlers::IgnoreEndStore');
-  my $self = $class->SUPER->new ({});
+  my $self = $class->SUPER::new ({});
 
   return bless ($self, $class);
 }
@@ -29,4 +46,4 @@ sub get_method_for ($$)
   return \&Gir::Handlers::Common::end_ignore;
 }
 
-1;
+1; # indicate proper module load.
diff --git a/tools/pm/Gir/Handlers/IgnoreStartStore.pm b/tools/pm/Gir/Handlers/IgnoreStartStore.pm
index 1b5d3f5..ef8e512 100644
--- a/tools/pm/Gir/Handlers/IgnoreStartStore.pm
+++ b/tools/pm/Gir/Handlers/IgnoreStartStore.pm
@@ -1,9 +1,26 @@
+## Copyright 2011 Krzesimir Nowak
+##
+## 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.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+##
+
 package Gir::Handlers::IgnoreStartStore;
 
 use strict;
 use warnings;
 
-use parent qw(Gir::Handlers::Store);
+use parent qw(Gir::Handlers::Generated::Common::Store);
 
 use Gir::Handlers::Common;
 
@@ -14,7 +31,7 @@ sub new ($)
 {
   my $type = shift;
   my $class = (ref ($type) or $type or 'Gir::Handlers::IgnoreStartStore');
-  my $self = $class->SUPER->new ({});
+  my $self = $class->SUPER::new ({});
 
   return bless ($self, $class);
 }
@@ -29,4 +46,4 @@ sub get_method_for ($$)
   return \&Gir::Handlers::Common::start_ignore;
 }
 
-1;
+1; # indicate proper module load.
diff --git a/tools/pm/Gir/Handlers/IgnoreStores.pm b/tools/pm/Gir/Handlers/IgnoreStores.pm
new file mode 100644
index 0000000..24dc5ac
--- /dev/null
+++ b/tools/pm/Gir/Handlers/IgnoreStores.pm
@@ -0,0 +1,23 @@
+## Copyright 2011 Krzesimir Nowak
+##
+## 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.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+##
+
+package Gir::Handlers::IgnoreStores;
+
+use Gir::Handlers::IgnoreStartStore;
+use Gir::Handlers::IgnoreEndStore;
+
+1; # indicate proper module load.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]