mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
Initial import of CVS-v2_8_branch
This commit is contained in:
53
web/rdcastmanager/Makefile.am
Normal file
53
web/rdcastmanager/Makefile.am
Normal file
@@ -0,0 +1,53 @@
|
||||
## automake.am
|
||||
##
|
||||
## Automake.am for rivendell/web/rdcastmanager
|
||||
##
|
||||
## (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
|
||||
##
|
||||
## $Id: Makefile.am,v 1.4.8.1 2012/11/29 01:37:38 cvs Exp $
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License version 2 as
|
||||
## published by the Free Software Foundation.
|
||||
##
|
||||
## 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
##
|
||||
## Use automake to process this into a Makefile.in
|
||||
|
||||
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@
|
||||
INCLUDES = -I$(top_srcdir)/lib
|
||||
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
|
||||
MOC = @QT_MOC@
|
||||
|
||||
# The dependency for qt's Meta Object Compiler (moc)
|
||||
moc_%.cpp: %.h
|
||||
$(MOC) $< -o $@
|
||||
|
||||
libexec_PROGRAMS = rdcastmanager.cgi
|
||||
libexec_SCRIPTS = rdcastmanager.js
|
||||
|
||||
dist_rdcastmanager_cgi_SOURCES = rdcastmanager.cpp rdcastmanager.h
|
||||
|
||||
rdcastmanager_cgi_LDADD = @LIB_RDLIBS@ @LIBVORBIS@
|
||||
|
||||
EXTRA_DIST = rdcastmanager.js\
|
||||
rdcastmanager.pro
|
||||
|
||||
CLEANFILES = *~\
|
||||
*.idb\
|
||||
*ilk\
|
||||
*.obj\
|
||||
*.pdb\
|
||||
*.qm\
|
||||
moc_*
|
||||
|
||||
MAINTAINERCLEANFILES = *~\
|
||||
Makefile.in\
|
||||
moc_*
|
1928
web/rdcastmanager/rdcastmanager.cpp
Normal file
1928
web/rdcastmanager/rdcastmanager.cpp
Normal file
File diff suppressed because it is too large
Load Diff
94
web/rdcastmanager/rdcastmanager.h
Normal file
94
web/rdcastmanager/rdcastmanager.h
Normal file
@@ -0,0 +1,94 @@
|
||||
// rdcastmanager.h
|
||||
//
|
||||
// Web-Based RSS Podcast Manager for Rivendell.
|
||||
//
|
||||
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: rdcastmanager.h,v 1.5 2010/07/29 19:32:40 cvs Exp $
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation.
|
||||
//
|
||||
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
|
||||
#ifndef RDCASTMANAGER_H
|
||||
#define RDCASTMANAGER_H
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qhostaddress.h>
|
||||
|
||||
#include <rdformpost.h>
|
||||
|
||||
//
|
||||
// CGI Values
|
||||
//
|
||||
#define RDCASTMANAGER_POST_SIZE 4096
|
||||
#define RDCASTMANAGER_MAX_FILTER_LENGTH 256
|
||||
#define RDCASTMANAGER_COMMAND_LOGIN 0
|
||||
#define RDCASTMANAGER_COMMAND_LOGOUT 1
|
||||
#define RDCASTMANAGER_COMMAND_LIST_FEEDS 2
|
||||
#define RDCASTMANAGER_COMMAND_LIST_CASTS 3
|
||||
#define RDCASTMANAGER_COMMAND_EDIT_CAST 4
|
||||
#define RDCASTMANAGER_COMMAND_COMMIT_CAST 5
|
||||
#define RDCASTMANAGER_COMMAND_CONFIRM_DELETE_CAST 6
|
||||
#define RDCASTMANAGER_COMMAND_DELETE_CAST 7
|
||||
#define RDCASTMANAGER_COMMAND_SUBSCRIPTION_PICK_DATES 8
|
||||
#define RDCASTMANAGER_COMMAND_SUBSCRIPTION_REPORT 9
|
||||
#define RDCASTMANAGER_COMMAND_EPISODE_PICK_DATES 10
|
||||
#define RDCASTMANAGER_COMMAND_EPISODE_REPORT 11
|
||||
#define RDCASTMANAGER_COMMAND_PLAY_CAST 12
|
||||
#define RDCASTMANAGER_COMMAND_POST_EPISODE 13
|
||||
|
||||
class MainObject : public QObject
|
||||
{
|
||||
public:
|
||||
MainObject(QObject *parent=0,const char *name=0);
|
||||
|
||||
private:
|
||||
int AuthenticatePost();
|
||||
void ServeLogin();
|
||||
void ServeLogout();
|
||||
void ServeListFeeds();
|
||||
void ServeListCasts();
|
||||
void ServeEditCast(int cast_id=-1);
|
||||
void ServePlay();
|
||||
void CommitCast();
|
||||
void ConfirmDeleteCast();
|
||||
void DeleteCast();
|
||||
void ServeSubscriptionReport();
|
||||
void ServeEpisodeReport();
|
||||
void PostEpisode();
|
||||
void ServeDatePicker(int cmd);
|
||||
void TitleSection(const QString &title,int cmd,int colspan) const;
|
||||
void GetUserPerms();
|
||||
void GetContext();
|
||||
void SetContext(int cmd) const;
|
||||
void Exit(int code);
|
||||
RDFormPost *cast_post;
|
||||
QString cast_login_name;
|
||||
long int cast_session_id;
|
||||
QHostAddress cast_client_addr;
|
||||
QString cast_key_name;
|
||||
int cast_feed_id;
|
||||
int cast_cast_id;
|
||||
bool cast_add_priv;
|
||||
bool cast_edit_priv;
|
||||
bool cast_delete_priv;
|
||||
QDate cast_start_date;
|
||||
QDate cast_end_date;
|
||||
RDConfig *cast_config;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDCASTMANAGER_H
|
39
web/rdcastmanager/rdcastmanager.js
Normal file
39
web/rdcastmanager/rdcastmanager.js
Normal file
@@ -0,0 +1,39 @@
|
||||
// rdcastmanager.js
|
||||
//
|
||||
// Script for displaying an upload progress dialog in a web browser.
|
||||
//
|
||||
// (C) Copyright 2009 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: rdcastmanager.js,v 1.2 2010/07/29 19:32:40 cvs Exp $
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation.
|
||||
//
|
||||
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
function StartProgressbar()
|
||||
{
|
||||
var html='<table cellpadding=\"10\" cellspacing=\"0\" border=\"0\" width=\"600\" height=\"400\">\n'+
|
||||
'<tr height=\"200\" bgcolor=\"#e0e0e0\">'+
|
||||
'<td align=\"center\" valign=\"bottom\">\n'+
|
||||
'<big><big>File uploading, please stand by...</big></big></td></tr>\n'+
|
||||
'<tr bgcolor=\"#e0e0e0\"><td align=\"center\" valign=\"top\">\n'+
|
||||
'<img src=\"progressbar.gif\" border=\"1\"></td></tr>\n'+
|
||||
'</table>\n';
|
||||
|
||||
document.getElementById("bigframe").innerHTML=html;
|
||||
}
|
||||
|
||||
function PostCast()
|
||||
{
|
||||
window.setTimeout('StartProgressbar()',10);
|
||||
}
|
0
web/rdcastmanager/rdcastmanager.pro
Normal file
0
web/rdcastmanager/rdcastmanager.pro
Normal file
Reference in New Issue
Block a user