| 1 |
# Copyright (C) 2005 Software Freedom Law Center, Inc. |
|---|
| 2 |
# Author: Bradley M. Kuhn <bkuhn@softwarefreedom.org> |
|---|
| 3 |
# |
|---|
| 4 |
# This software gives you freedom; it is licensed to you under version |
|---|
| 5 |
# 3 of the GNU Affero General Public License. |
|---|
| 6 |
# |
|---|
| 7 |
# This software is distributed WITHOUT ANY WARRANTY, without even the |
|---|
| 8 |
# implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR |
|---|
| 9 |
# PURPOSE. See the GNU Affero General Public License for further |
|---|
| 10 |
# details. |
|---|
| 11 |
# |
|---|
| 12 |
# You should have received a copy of the GNU Affero General Public |
|---|
| 13 |
# License, version 3 along with this software. If not, see |
|---|
| 14 |
# <http://www.gnu.org/licenses/>. |
|---|
| 15 |
use SFLC::TimeTracker::Entry; |
|---|
| 16 |
use SFLC::TimeTracker::DB; |
|---|
| 17 |
use SFLC::TimeTracker::Question; |
|---|
| 18 |
use SFLC::TimeTracker::Input; |
|---|
| 19 |
use SFLC::TimeTracker::Category; |
|---|
| 20 |
|
|---|
| 21 |
use strict; |
|---|
| 22 |
use warnings; |
|---|
| 23 |
|
|---|
| 24 |
my |
|---|
| 25 |
$DATABASE = |
|---|
| 26 |
new SFLC::TimeTracker::DB("MLDBM", "./time-data.mldbm", |
|---|
| 27 |
"./pending-time.mldbm"); |
|---|
| 28 |
|
|---|
| 29 |
SFLC::TimeTracker::Entry::Initialize($DATABASE); |
|---|
| 30 |
SFLC::TimeTracker::Question::Initialize($DATABASE); |
|---|
| 31 |
SFLC::TimeTracker::Input::Initialize($DATABASE); |
|---|
| 32 |
|
|---|
| 33 |
my $cat = new SFLC::TimeTracker::Category(userHandle => 'user1', |
|---|
| 34 |
name => $ARGV[0]); |
|---|
| 35 |
print "Created category: ", $cat->prettyPrint(), "\n"; |
|---|
| 36 |
|
|---|