| 1 | // ePDFView - Dumb Test Preferences View. |
|---|
| 2 | // Copyright (C) 2006 Emma's Software. |
|---|
| 3 | // |
|---|
| 4 | // This program is free software; you can redistribute it and/or modify |
|---|
| 5 | // it under the terms of the GNU General Public License as published by |
|---|
| 6 | // the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | // (at your option) any later version. |
|---|
| 8 | // |
|---|
| 9 | // This program is distributed in the hope that it will be useful, |
|---|
| 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | // GNU General Public License for more details. |
|---|
| 13 | // |
|---|
| 14 | // You should have received a copy of the GNU General Public License |
|---|
| 15 | // along with this program; if not, write to the Free Software |
|---|
| 16 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 17 | |
|---|
| 18 | #include <epdfview.h> |
|---|
| 19 | #include "DumbPreferencesView.h" |
|---|
| 20 | |
|---|
| 21 | using namespace ePDFView; |
|---|
| 22 | |
|---|
| 23 | DumbPreferencesView::DumbPreferencesView (): |
|---|
| 24 | IPreferencesView () |
|---|
| 25 | { |
|---|
| 26 | m_BrowserCommandLine = g_strdup (""); |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | DumbPreferencesView::~DumbPreferencesView () |
|---|
| 30 | { |
|---|
| 31 | g_free (m_BrowserCommandLine); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | const gchar * |
|---|
| 35 | DumbPreferencesView::getBrowserCommandLine () |
|---|
| 36 | { |
|---|
| 37 | return m_BrowserCommandLine; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | //////////////////////////////////////////////////////////////// |
|---|
| 41 | // Test Only Functions. |
|---|
| 42 | //////////////////////////////////////////////////////////////// |
|---|
| 43 | |
|---|
| 44 | void |
|---|
| 45 | DumbPreferencesView::setBrowserCommandLine (const gchar *commandLine) |
|---|
| 46 | { |
|---|
| 47 | g_free (m_BrowserCommandLine); |
|---|
| 48 | m_BrowserCommandLine = g_strdup (commandLine); |
|---|
| 49 | } |
|---|